Name
gl.DisableClientState -- disable client-side capability
Synopsis
gl.DisableClientState(cap)
Function
gl.DisableClientState() disables individual client-side capabilities. By default, all client-side capabilities are disabled. gl.DisableClientState() takes a single argument, cap, which can assume one of the following values:

#GL_COLOR_ARRAY
If enabled, the color array is enabled for writing and used during rendering when gl.ArrayElement(), gl.DrawArrays(), or gl.DrawElements() is called. See gl.ColorPointer for details.

#GL_EDGE_FLAG_ARRAY
If enabled, the edge flag array is enabled for writing and used during rendering when gl.ArrayElement(), gl.DrawArrays(), or gl.DrawElements() is called. See gl.EdgeFlagPointer for details.

#GL_INDEX_ARRAY
If enabled, the index array is enabled for writing and used during rendering when gl.ArrayElement(), gl.DrawArrays(), or gl.DrawElements() is called. See gl.IndexPointer for details.

#GL_NORMAL_ARRAY
If enabled, the normal array is enabled for writing and used during rendering when gl.ArrayElement(), gl.DrawArrays(), or gl.DrawElements() is called. See gl.NormalPointer for details.

#GL_TEXTURE_COORD_ARRAY
If enabled, the texture coordinate array is enabled for writing and used during rendering when gl.ArrayElement(), gl.DrawArrays(), or gl.DrawElements() is called. See gl.TexCoordPointer for details.

#GL_VERTEX_ARRAY
If enabled, the vertex array is enabled for writing and used during rendering when gl.ArrayElement(), gl.DrawArrays(), or gl.DrawElements() is called. See gl.VertexPointer for details.

Please consult an OpenGL reference manual for more information.

Inputs
array
specifies the capability to disable (see above for supported constants)
Errors
#GL_INVALID_ENUM is generated if cap is not an accepted value.

gl.DisableClientState() is not allowed between the execution of gl.Begin() and the corresponding gl.End(), but an error may or may not be generated. If no error is generated, the behavior is undefined.


Show TOC