Light | Dark

glActiveTexture

Name

glActiveTexture — select active texture unit

C Specification

void glActiveTexture( GLenum texture);
 

Parameters

texture

Specifies which texture unit to make active. The number of texture units is implementation-dependent, but must be at least 32. texture must be one of GL_TEXTUREi, where i ranges from zero to the value of GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS minus one. The initial value is GL_TEXTURE0.

Description

glActiveTexture selects which texture unit subsequent texture state calls will affect. The number of texture units an implementation supports is implementation-dependent, but must be at least 32.

Errors

GL_INVALID_ENUM is generated if texture is not one of GL_TEXTUREi, where i ranges from zero to the value of GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS minus one.

Associated Gets

glGet with argument GL_ACTIVE_TEXTURE, or GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS.

API Version Support

OpenGL ES API Version
Function Name 2.0 3.0 3.1
glActiveTexture
Think you can improve this page? Edit this page on GitHub.