GlCullFace

From QB64 Wiki
Jump to navigation Jump to search

_glCullFace: specify whether front- or back-facing facets can be culled


Syntax

SUB _glCullFace (BYVAL mode AS _UNSIGNED LONG)
void _glCullFace(GLenum mode);


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

_glCullFace 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 _glEnable and _glDisable commands with the argument _GL_CULL_FACE. Facets include triangles, quadrilaterals, polygons, and rectangles.

_glFrontFace specifies which of the clockwise and counterclockwise facets are front-facing and back-facing. See _glFrontFace.


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.


Use With:

_glIsEnabled with argument _GL_CULL_FACE

_glGet with argument _GL_CULL_FACE_MODE


See also

SUB _GL (GL_CULL_FACE), _glFrontFace


Copyright: 1991-2006 Silicon Graphics, Inc. This document is licensed under the SGI Free Software B License.
For details, see http://oss.sgi.com/projects/FreeB/.



Navigation:
Go to Keyword Reference - Alphabetical
Go to Keyword Reference - By usage
Go to Main WIKI Page