1GLCULLFACE(3G) GLCULLFACE(3G)
2
3
4
6 glCullFace - specify whether front- or back-facing facets can be culled
7
8
10 void glCullFace( GLenum mode )
11
12
14 mode Specifies whether front- or back-facing facets are candidates for
15 culling. Symbolic constants GL_FRONT, GL_BACK, and
16 GL_FRONT_AND_BACK are accepted. The initial value is GL_BACK.
17
19 glCullFace specifies whether front- or back-facing facets are culled
20 (as specified by mode) when facet culling is enabled. Facet culling is
21 initially disabled. To enable and disable facet culling, call the
22 glEnable and glDisable commands with the argument GL_CULL_FACE. Facets
23 include triangles, quadrilaterals, polygons, and rectangles.
24
25 glFrontFace specifies which of the clockwise and counterclockwise
26 facets are front-facing and back-facing. See glFrontFace.
27
29 If mode is GL_FRONT_AND_BACK, no facets are drawn, but other primiā
30 tives such as points and lines are drawn.
31
33 GL_INVALID_ENUM is generated if mode is not an accepted value.
34
35 GL_INVALID_OPERATION is generated if glCullFace is executed between the
36 execution of glBegin and the corresponding execution of glEnd.
37
39 glIsEnabled with argument GL_CULL_FACE
40 glGet with argument GL_CULL_FACE_MODE
41
43 glEnable(3G), glFrontFace(3G)
44
45
46
47 GLCULLFACE(3G)