glCullFace  AGVIT6

[New - Windows 95, OEM Service Release 2]

The glCullFace function specifies whether front- or back-facing facets can be culled.

void glCullFace(

    GLenum mode

 

   );

 

 

Parameters

mode

Specifies whether front- or back-facing facets are candidates for culling. Symbolic constants GL_FRONT and GL_BACK are accepted. The default value is GL_BACK.

 

Remarks

The glCullFace function specifies whether front- or back-facing facets are culled (as specified by mode) when facet culling is enabled. You enable and disable facet culling using glEnable194O61P and glDisable194O61P with the argument GL_CULL_FACE. Facets include triangles, quadrilaterals, polygons, and rectangles.

The glFrontFaceH0SHHH function specifies which of the clockwise and counterclockwise facets are front-facing and back-facing.

The following functions retrieve information related to glCullFace:

glGet8KNKTW with argument GL_CULL_FACE_MODE

glIsEnabled1MZ_ZK. with argument GL_CULL_FACE

 

Error Codes

The following are the error codes generated and their conditions.

Error Code

Condition

GL_INVALID_ENUM

mode was not an accepted value.

GL_INVALID_OPERATION

glCullFace was called between a call to glBegin and the corresponding call to glEnd.

 

See Also

glBegin, glDisable, glEnable, glEnd, glFrontFace, glGet, glIsEnabled