glFrontFace Function

Syntax

GL_APICALL void GL_APIENTRY glFrontFace(
     GLenum mode
);

Arguments

Name Description
in mode Specified front-facing direction.

Return Values

No values are returned.

Description

Specifies the front-facing direction for polygons.

Set mode to one of the following values.

GL_CWA polygon is determined to be front-facing if the coordinates of its three vertices are placed in clockwise order.
GL_CCWA polygon is determined to be front-facing if the coordinates of its three vertices are placed in counterclockwise order.

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