Name
gl.ClearStencil -- specify the clear value for the stencil buffer
Synopsis
gl.ClearStencil(s)
Function
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.

Inputs
s
specifies the index used when the stencil buffer is cleared; the initial value is 0
Errors
#GL_INVALID_OPERATION is generated if gl.ClearStencil() is executed between the execution of glBegin and the corresponding execution of glEnd

Associated gets
gl.Get() with argument #GL_STENCIL_CLEAR_VALUE

gl.Get() with argument #GL_STENCIL_BITS


Show TOC