glCullFace Function

Syntax

GL_APICALL void GL_APIENTRY glCullFace(
     GLenum mode
);

Arguments

Name Description
in mode Polygon face to cull

Return Values

No values are returned.

Description

Specifies the polygon face to cull when culling is enabled.

Set mode to one of the following values.
GL_FRONTFront-face culling.
GL_BACKBack-face culling.
GL_FRONT_AND_BACKCulls both front and back faces.

This function generates the following errors.

GL_INVALID_ENUMThe mode argument was set to an invalid value.
GL_INVALID_OPERATIONA GL_INVALID_OPERATION error occurs when this function is called without any command-list objects bound.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL