GlCullFace

From QB64 Phoenix Edition Wiki
Revision as of 18:49, 30 April 2022 by SMcNeill (talk | contribs) (Created page with "'''_glCullFace:''' specify whether front- or back-facing facets can be culled {{PageSyntax}} ::SUB '''_glCullFace''' (BYVAL mode AS _UNSIGNED LONG) :: void '''_glCullFace'''(GLenum {{Parameter|mode}}); ; mode : Specifies whether front- or back-facing facets are candidates for culling. Symbolic constants {{KW|_GL_FRONT}}, {{KW|_GL_BACK}}, and {{KW|_GL_FRONT_AND_BACK}} are accepted. The initial value is {{KW|_GL_BACK}}. {{PageDescription}} '''_glCullFace''' specifi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 Template:KW, Template:KW, and Template:KW are accepted. The initial value is Template:KW.


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 Template:KW and Template:KW commands with the argument Template:KW. Facets include triangles, quadrilaterals, polygons, and rectangles.

Template:KW specifies which of the clockwise and counterclockwise facets are front-facing and back-facing. See Template:KW.


Template:PageNotes

If mode is Template:KW, no facets are drawn, but other primitives such as points and lines are drawn.


Template:PageErrors

Template:KW is generated if mode is not an accepted value.


Template:PageUseWith

Template:KW with argument Template:KW

Template:KW with argument Template:KW


See also

SUB _GL Template:KW, Template:KW


Template:PageCopyright