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

glEnableClientState or glDisableClientState Subroutine


Enables or disables an array.


OpenGL C bindings library: libGL.a

C Syntax

void glEnableClientState(GLenum array)
void glDisableClientState(GLenum array)


array Specifies the array to enable or disable. Symbolic constraints GL_EDGE_FLAG_ARRAY, GL_TEXTURE_COORD_ARRAY, GL_COLOR_ARRAY, GL_INDEX_ARRAY, GL_NORMAL_ARRAY, and GL_VERTEX_ARRAY are accepted (for glEnableClientState).


The glEnableClientState subroutine lets you enable individual arrays, and glDisableClientState lets you disable individual arrays.


The glEnableClientState and glDisableClientState subroutines are available only if the GL version is 1.1 or greater.


GL_INVALID_ENUM is generated if array is not an accepted value.

The glEnableClientState subroutine is not allowed between the execution of glBegin and the corresponding glEnd, but an error may or may not be generated. If no error is generated then the behavior is undefined.

Related Information

The glArrayElement subroutine, glColorPointer subroutine, glDrawArrays subroutine, glDrawElements subroutine, glEdgeFlagPointer subroutine, glEnable subroutine, glGetPointerv subroutine, glIndexPointer subroutine, glInterleavedArrays subroutine, glNormalPointer subroutine, glTexCoordPointer subroutine, glVertexPointer subroutine.

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