1GLFRONTFACE(3G)                                                GLFRONTFACE(3G)
2
3
4

NAME

6       glFrontFace - define front- and back-facing polygons
7
8

C SPECIFICATION

10       void glFrontFace( GLenum mode )
11
12

PARAMETERS

14       mode  Specifies  the  orientation  of front-facing polygons.  GL_CW and
15             GL_CCW are accepted.  The initial value is GL_CCW.
16

DESCRIPTION

18       In a scene composed entirely of  opaque  closed  surfaces,  back-facing
19       polygons  are  never visible.  Eliminating these invisible polygons has
20       the obvious benefit of speeding up the  rendering  of  the  image.   To
21       enable  and  disable elimination of back-facing polygons, call glEnable
22       and glDisable with argument GL_CULL_FACE.
23
24       The projection of a polygon to  window  coordinates  is  said  to  have
25       clockwise  winding  if  an imaginary object following the path from its
26       first vertex, its second vertex, and so on, to  its  last  vertex,  and
27       finally  back to its first vertex, moves in a clockwise direction about
28       the interior of the polygon.  The polygon's winding is said to be coun‐
29       terclockwise if the imaginary object following the same path moves in a
30       counterclockwise  direction  about  the  interior   of   the   polygon.
31       glFrontFace specifies whether polygons with clockwise winding in window
32       coordinates, or counterclockwise winding  in  window  coordinates,  are
33       taken to be front-facing.  Passing GL_CCW to mode selects counterclock‐
34       wise polygons as front-facing;  GL_CW  selects  clockwise  polygons  as
35       front-facing.   By  default,  counterclockwise polygons are taken to be
36       front-facing.
37

ERRORS

39       GL_INVALID_ENUM is generated if mode is not an accepted value.
40
41       GL_INVALID_OPERATION is generated if glFrontFace  is  executed  between
42       the execution of glBegin and the corresponding execution of glEnd.
43

ASSOCIATED GETS

45       glGet with argument GL_FRONT_FACE
46

SEE ALSO

48       glCullFace(3G), glLightModel(3G)
49
50
51
52                                                               GLFRONTFACE(3G)
Impressum