[ Previous | Next | Contents | Glossary | Home | Search ]
OpenGL 1.1 for AIX: Reference Manual

glClearIndex Subroutine

Purpose

Specifies the clear value for the color index buffers.

Library

OpenGL C bindings library: libGL.a

C Syntax

void glClearIndex(GLfloat Clear)

Description

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.

Parameters

Clear Specifies the index used when the color index buffers are cleared. The default value is 0 (zero).

Errors

GL_INVALID_OPERATION The glClearIndex subroutine is called between a call to glBegin and the corresponding call to glEnd.

Associated Gets

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.

Files

/usr/include/GL/gl.h Contains C language constants, variable type definitions, and ANSI function prototypes for OpenGL.

Related Information

The glBegin or glEnd subroutine, glClear subroutine.

OpenGL Overview.


[ Previous | Next | Contents | Glossary | Home | Search ]