glActiveTexture Function

Syntax

GL_APICALL void GL_APIENTRY glActiveTexture(
     GLenum texture
);

Arguments

Name Description
in texture Texture unit to activate

Return Values

No values are returned.

Description

Activates a texture unit.

Set texture to GL_TEXTUREi.

The value of i is greater than or equal to 0 and is at least one less than the number of supported texture units. To get the number of supported texture units, specify GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS to the glGetIntegerv function. You cannot specify GL_TEXTURE3, which is specific to procedural textures.

This function generates the following errors.

GL_INVALID_ENUMThe texture argument was set to an invalid value.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL