NAME

glStencilMask - control the writing of individual bits in the stencil planes

C SPECIFICATION

void ggllSStteenncciillMMaasskk( GLuint _m_a_s_k )

        

delim $$

PARAMETERS

_m_a_s_k
Specifies a bit mask to enable and disable writing of individual bits in the stencil planes. Initially, the mask is all 1's.

DESCRIPTION

ggllSStteenncciillMMaasskk controls the writing of individual bits in the stencil planes. The least significant $n$ bits of _m_a_s_k, 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.

ERRORS

GGLL__IINNVVAALLIIDD__OOPPEERRAATTIIOONN is generated if ggllSStteenncciillMMaasskk is executed between the execution of ggllBBeeggiinn and the corresponding execution of ggllEEnndd.

ASSOCIATED GETS

ggllGGeett with argument GGLL__SSTTEENNCCIILL__WWRRIITTEEMMAASSKK
ggllGGeett with argument GGLL__SSTTEENNCCIILL__BBIITTSS

SEE ALSO

ggllCCoolloorrMMaasskk((33GG)), ggllDDeepptthhMMaasskk((33GG)), ggllIInnddeexxMMaasskk((33GG)), ggllSStteenncciillFFuunncc((33GG)), ggllSStteenncciillOOpp((33GG))