Gl.CullFace (gb.opengl)

Static Sub CullFace ( Mode As Integer )

Specify whether front- or back-facing facets can be culled.

Parameters

mode

Specifies whether front- or back-facing facets are candidates for culling. Symbolic constants Gl.FRONT, Gl.BACK, and Gl.FRONT_AND_BACK are accepted. The initial value is Gl.BACK.

Description

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.

Notes

If mode is Gl.FRONT_AND_BACK, no facets are drawn, but other primitives such as points and lines are drawn.

Errors

Gl.INVALID_ENUM is generated if mode is not an accepted value.

Associated Gets

Gl.IsEnabled with argument Gl.CULL_FACE

Gl.Get with argument Gl.CULL_FACE_MODE

See also

See original documentation on OpenGL website