glClientActiveTexture (original) (raw)

Name

glClientActiveTexture — select active texture unit

C Specification

void glClientActiveTexture( GLenum texture);

Parameters

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_TEXTUREi, where i ranges from 0 to the value of GL_MAX_TEXTURE_COORDS - 1, which is an implementation-dependent value. The initial value isGL_TEXTURE0.

Notes

glClientActiveTexture is supported only if the GL version is 1.3 or greater, orARB_multitexture is included in the string returned byglGetString when called with the argument GL_EXTENSIONS.

Errors

GL_INVALID_ENUM is generated if texture is not one ofGL_TEXTUREi, where i ranges from 0 to the value of GL_MAX_TEXTURE_COORDS - 1.

Associated Gets

glGet with argument GL_CLIENT_ACTIVE_TEXTURE or GL_MAX_TEXTURE_COORDS