Specifies the clear value for the color index buffers.
OpenGL C bindings library: libGL.a
void glClearIndex(GLfloat Clear)
The glClearIndex subroutine specifies the index used by glClear to clear the color index buffers. The Clear parameter is not clamped. Rather, Clear 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 2m -1, where m is the number of bits in a color index stored in the frame buffer.
Clear | Specifies the index used when the color index buffers are cleared. The default value is 0 (zero). |
GL_INVALID_OPERATION | The glClearIndex subroutine is called between a call to glBegin and the corresponding call to glEnd. |
Associated gets for the glClearIndex subroutine are as follows. (See the glGet subroutine for more information.)
glGet with argument GL_INDEX_CLEAR_VALUE
glGet with argument GL_INDEX_BITS.
/usr/include/GL/gl.h | Contains C language constants, variable type definitions, and ANSI function prototypes for OpenGL. |
The glBegin or glEnd subroutine, glClear subroutine.