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

glEnableClientState or glDisableClientState Subroutine

Purpose

Enables or disables an array.

Library

OpenGL C bindings library: libGL.a

C Syntax

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

Parameters

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).

Description

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

Notes

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

Errors

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 ]