1GLSTENCILMASK(3G) GLSTENCILMASK(3G)
2
3
4
6 glStencilMask - control the writing of individual bits in the stencil
7 planes
8
9
11 void glStencilMask( GLuint mask )
12
13
15 mask Specifies a bit mask to enable and disable writing of individual
16 bits in the stencil planes. Initially, the mask is all 1's.
17
19 glStencilMask controls the writing of individual bits in the stencil
20 planes. The least significant n bits of mask, where n is the number of
21 bits in the stencil buffer, specify a mask. Where a 1 appears in the
22 mask, it's possible to write to the corresponding bit in the stencil
23 buffer. Where a 0 appears, the corresponding bit is write-protected.
24 Initially, all bits are enabled for writing.
25
27 GL_INVALID_OPERATION is generated if glStencilMask is executed between
28 the execution of glBegin and the corresponding execution of glEnd.
29
31 glGet with argument GL_STENCIL_WRITEMASK
32 glGet with argument GL_STENCIL_BITS
33
35 glColorMask(3G), glDepthMask(3G), glIndexMask(3G), glStencilFunc(3G),
36 glStencilOp(3G)
37
38
39
40 GLSTENCILMASK(3G)