Name
gl.ClearIndex -- specify the clear value for the color index buffers
Synopsis
gl.ClearIndex(c)
Function
gl.ClearIndex() specifies the index used by gl.Clear() to clear the color index buffers. c is not clamped. Rather, c is converted to a fixed-point value with unspecified precision to the right of the binary point. The integer part of this value is then masked with 2^m-1 , where m is the number of bits in a color index stored in the frame buffer.

Please consult an OpenGL reference manual for more information.

Inputs
c
specifies the index used when the color index buffers are cleared; the initial value is 0
Errors
#GL_INVALID_OPERATION is generated if gl.ClearIndex() is executed between the execution of gl.Begin() and the corresponding execution of gl.End()

Associated gets
gl.Get() with argument #GL_INDEX_CLEAR_VALUE

gl.Get() with argument #GL_INDEX_BITS


Show TOC