GL_APICALL void GL_APIENTRY glActiveTexture(
GLenum texture
);
| Name | Description | |
|---|---|---|
| in | texture | Texture unit to activate |
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_ENUM | The texture argument was set to an invalid value. |
|---|
CONFIDENTIAL