glIndexPointer

define an array of color indexes

Signature

glIndexPointer( GLenum ( type ) , GLsizei ( stride ) , const GLvoid * ( pointer ) )-> void
glIndexPointer( type , stride , pointer )
glIndexPointerf( pointer )
glIndexPointeri( pointer )
glIndexPointers( pointer )

Parameters

VariablesDescription
type
Specifies the data type of each color index in the array. Symbolic constants GL_UNSIGNED_BYTE , GL_SHORT , GL_INT , GL_FLOAT , and GL_DOUBLE are accepted. The initial value is GL_FLOAT .
stride
Specifies the byte offset between consecutive color indexes. If stride is 0, the color indexes are understood to be tightly packed in the array. The initial value is 0.
pointer
Specifies a pointer to the first index in the array. The initial value is 0.