glClientActiveTexture
- select client-side active texture unit
void glClientActiveTexture(GLenum texture)
texture
Specifies which texture unit to make active. The number of texture units is implementation dependent, but must be at least two. texture
must be one of GL_TEXTURE
i, 0 ≤ i < GL_MAX_TEXTURE_UNITS
, which is an implementation-dependent value. The initial value is GL_TEXTURE0
.
glClientActiveTexture
selects the vertex array client state parameters to be modified by glTexCoordPointer
, and enabled or disabled with glEnableClientState
or glDisableClientState
, respectively, when called with a parameter of GL_TEXTURE_COORD_ARRAY
.
GL_INVALID_ENUM
is generated if texture
is not one of GL_TEXTURE
i, where 0 ≤ i < GL_MAX_TEXTURE_UNITS
.
It is always the case that GL_TEXTURE
i = GL_TEXTURE0
+ i.
glGet
with argument GL_MAX_TEXTURE_UNITS
Copyright © 2003-2004 Silicon Graphics, Inc.
This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/.
glActiveTexture
, glEnableClientState
, glGet
, glMultiTexCoord
, glTexCoordPointer