gl.ClearStencil(s)
gl.ClearStencil()
specifies the index used by gl.Clear() to clear the stencil buffer. s
is masked with 2^m-1 , where m is the number of bits in the stencil buffer.
Please consult an OpenGL reference manual for more information.
#GL_INVALID_OPERATION
is generated if gl.ClearStencil()
is executed between the execution of glBegin
and the corresponding execution of glEnd
#GL_STENCIL_CLEAR_VALUE
gl.Get() with argument #GL_STENCIL_BITS