gl.CullFace(mode)
gl.CullFace() specifies whether front- or back-facing facets are culled (as specified by mode) when facet
culling is enabled. Facet culling is initially disabled. To enable and disable facet culling, call the
gl.Enable() and gl.Disable() commands with the argument #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. See gl.FrontFace for details.
If mode is #GL_FRONT_AND_BACK, no facets are drawn, but other primitives such as points and lines are drawn.
Please consult an OpenGL reference manual for more information.
#GL_FRONT, #GL_BACK, and #GL_FRONT_AND_BACK are accepted; the initial value is #GL_BACK#GL_INVALID_ENUM is generated if mode is not an accepted value.
#GL_INVALID_OPERATION is generated if gl.CullFace() is executed between the execution of gl.Begin() and the corresponding execution of gl.End()
#GL_CULL_FACE
gl.Get() with argument #GL_CULL_FACE_MODE