glClearIndex
[New
- Windows 95, OEM Service Release 2]
The glClearIndex
function specifies the clear value for the color-index buffers.
void glClearIndex(
GLfloat c |
|
); |
|
Parameters
c
The index
used when the color-index buffers are cleared. The default value is zero.
Remarks
The glClearIndex
function specifies the index used by glClear3CIV_S5 to clear the color-index buffers. The c
parameter 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.
The following
functions retrieve information related to glClearIndex:
glGet with
argument GL_INDEX_CLEAR_VALUE
glGet with
argument GL_INDEX_BITS
Error Codes
The following
are the error codes generated and their conditions.
Error
Code |
Condition |
GL_INVALID_OPERATION
|
glClearIndex was called between a call to glBegin and the
corresponding call to glEnd. |
See Also