cullface.html
来自「计算机图形学~想必是很多人需要的~在此共享一下」· HTML 代码 · 共 59 行
HTML
59 行
<HTML><BODY><PRE> <STRONG>NAME</STRONG> <STRONG>glCullFace</STRONG> - specify whether front- or back-facing facets can be culled <STRONG>C</STRONG> <STRONG>SPECIFICATION</STRONG> void <STRONG>glCullFace</STRONG>( GLenum <EM>mode</EM> ) <STRONG>PARAMETERS</STRONG> <EM>mode</EM> Specifies whether front- or back-facing facets are candidates for culling. Symbolic constants <STRONG>GL_FRONT</STRONG>, <STRONG>GL_BACK</STRONG>, and <STRONG>GL_FRONT_AND_BACK</STRONG> are accepted. The initial value is <STRONG>GL_BACK</STRONG>. <STRONG>DESCRIPTION</STRONG> <STRONG>glCullFace</STRONG> specifies whether front- or back-facing facets are culled (as specified by <EM>mode</EM>) when facet culling is enabled. Facet culling is initially disabled. To enable and disable facet culling, call the <STRONG>glEnable</STRONG> and <STRONG>glDisable</STRONG> commands with the argument <STRONG>GL_CULL_FACE</STRONG>. Facets include triangles, quadrilaterals, polygons, and rectangles. <STRONG>glFrontFace</STRONG> specifies which of the clockwise and counterclockwise facets are front-facing and back-facing. See <STRONG>glFrontFace</STRONG>. <STRONG>NOTES</STRONG> If <EM>mode</EM> is <STRONG>GL_FRONT_AND_BACK</STRONG>, no facets are drawn, but other primitives such as points and lines are drawn. <STRONG>ERRORS</STRONG> <STRONG>GL_INVALID_ENUM</STRONG> is generated if <EM>mode</EM> is not an accepted value. <STRONG>GL_INVALID_OPERATION</STRONG> is generated if <STRONG>glCullFace</STRONG> is executed between the execution of <STRONG>glBegin</STRONG> and the corresponding execution of <STRONG>glEnd</STRONG>. <STRONG>ASSOCIATED</STRONG> <STRONG>GETS</STRONG> <STRONG>glIsEnabled</STRONG> with argument <STRONG>GL_CULL_FACE</STRONG> <STRONG>glGet</STRONG> with argument <STRONG>GL_CULL_FACE_MODE</STRONG> <STRONG>SEE</STRONG> <STRONG>ALSO</STRONG> <STRONG>glEnable</STRONG>, <STRONG>glFrontFace</STRONG></PRE></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?