STATIC SUB CullFace ( Mode AS Integer )
Gl.CullFace specifies whether front- or back-facing facets are culled (as specified by mode) when facet culling is enabled. Facet culling is enabled and disabled using the Gl.Enable and Gl.Disable commands with the argument Gl.GL_CULL_FACE. Facets include triangles, quadrilaterals, polygons, and rectangles. Gl.FrontFace specifies which of the clockwise and counterclockwise facets are front-facing and back-facing.
Gl.GL_INVALID_ENUM is generated if Mode is not an accepted value.
Gl.GL_INVALID_OPERATION is generated if Gl.CullFace is called between a call to Gl.Begin and the corresponding call to Gl.End.
Gl.IsEnabled with argument Gl.GL_CULL_FACE
Gl.GetCullFaceMode