The glStencilMask function controls the writing of individual bits in the stencil planes.
void WINAPI glStencilMask( GLuint mask );
A bit mask to enable and disable writing of individual bits in the stencil planes. Initially, the mask is all ones.
This function does not return a value.
The following error code can be retrieved by the glGetError function.
||The function was called between a call to glBegin and the corresponding call to glEnd.
The glStencilMask function controls the writing of individual bits in the stencil planes. The least significant n bits of mask, where n is the number of bits in the stencil buffer, specify a mask. Wherever a one appears in the mask, the corresponding bit in the stencil buffer is made writable. Where a zero appears, the bit is write-protected. Initially, all bits are enabled for writing.
The following functions retrieve information related to glStencilMask:
glGet with argument GL_STENCIL_WRITEMASK
glGet with argument GL_STENCIL_BITS
|Minimum supported client
||Windows 2000 Professional [desktop apps only]
|Minimum supported server
||Windows 2000 Server [desktop apps only]