stencilmask.html
来自「计算机图形学~想必是很多人需要的~在此共享一下」· HTML 代码 · 共 59 行
HTML
59 行
<HTML><BODY><PRE> <STRONG>NAME</STRONG> <STRONG>glStencilMask</STRONG> - control the writing of individual bits in the stencil planes <STRONG>C</STRONG> <STRONG>SPECIFICATION</STRONG> void <STRONG>glStencilMask</STRONG>( GLuint <EM>mask</EM> ) <STRONG>PARAMETERS</STRONG> <EM>mask</EM> Specifies a bit mask to enable and disable writing of individual bits in the stencil planes. Initially, the mask is all 1's. <STRONG>DESCRIPTION</STRONG> <STRONG>glStencilMask</STRONG> controls the writing of individual bits in the stencil planes. The least significant n bits of <EM>mask</EM>, where n is the number of bits in the stencil buffer, specify a mask. Where a 1 appears in the mask, it's possible to write to the corresponding bit in the stencil buffer. Where a 0 appears, the corresponding bit is write-protected. Initially, all bits are enabled for writing. <STRONG>ERRORS</STRONG> <STRONG>GL_INVALID_OPERATION</STRONG> is generated if <STRONG>glStencilMask</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>glGet</STRONG> with argument <STRONG>GL_STENCIL_WRITEMASK</STRONG> <STRONG>glGet</STRONG> with argument <STRONG>GL_STENCIL_BITS</STRONG> <STRONG>SEE</STRONG> <STRONG>ALSO</STRONG> <STRONG>glColorMask</STRONG>, <STRONG>glDepthMask</STRONG>, <STRONG>glIndexMask</STRONG>, <STRONG>glStencilFunc</STRONG>, <STRONG>glStencilOp</STRONG></PRE></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?