glEnableClientState, glDisableClientState

The glEnableClientState and glDisableClientState functions enable and disable arrays respectively.

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

Parameters

Remarks

The glEnableClientState and glDisableClientState functions enable and disable various individual arrays. Use glIsEnabled or glGet to determine the current setting of any capability.

Calling glEnableClientState and glDisableClientState between calls to glBegin and the corresponding call to glEnd can cause an error. If no error is generated, the behavior is undefined.

Note  The glEnableClientState and glDisableClientState functions are only available in OpenGL version 1.1 or later.

Error Codes

The following is the error code generated and its condition.

Error code Condition
GL_INVALID_ENUM array was not an accepted value.

Requirements

**  Windows NT/2000:** Requires Windows NT 4.0 or later.
**  Windows 95/98:** Requires Windows 95 or later. Available as a redistributable for Windows 95.
**  Header:** Declared in Gl.h.
**  Library:** Use Opengl32.lib.

See Also

glArrayElement, glBegin, glColorPointer, glDrawArrays, glDrawElements, glEdgeFlagPointer, glEnable, glEnd, glGetPointerv, glIndexPointer, glInterleavedArrays, glNormalPointer, glTexCoordPointer, glVertexPointer