Name
glActiveTextureARB — select active texture unit
C Specification
void glActiveTextureARB
|
( |
GLenum texture
); |
Python Specification
glActiveTextureARB
|
( |
texture
) →
None
|
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_ARB, where 0≤i< GL_MAX_TEXTURE_UNITS_ARB, which is an implementation-dependent
value. The intial value is GL_TEXTURE0_ARB.
Description
glActiveTextureARB 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 2.
Vertex arrays are client-side GL resources, which are selected by the glClientActiveTextureARB routine.
Notes
glActiveTextureARB is only supported if GL_ARB_multitexture is included in
the string returned by glGetString when called with the argument
GL_EXTENSIONS.
Errors
GL_INVALID_ENUM is generated if texture is not one of
GL_TEXTUREi_ARB, where 0≤i< GL_MAX_TEXTURE_UNITS_ARB.
Python Sample Code
- glActiveTextureARB
-
- OpenGL/Demo/NeHe/lesson6-multi.py Ln#97,101
- OpenGLContext/tests/multitexture_1.py Ln#26,32,38,43
- OpenGLContext/tests/nehe6_multi.py Ln#105,110,121,127
- {LGPL} VisionEgg/src/Gratings.py Ln#196,253
- {LGPL} VisionEgg/src/Textures.py Ln#387,394,402,410,418...
- GL_TEXTURE
-
- OpenGL/Demo/NeHe/lesson6-multi.py Ln#97,101
- OpenGLContext/tests/multitexture_1.py Ln#26,32,38,43
- OpenGLContext/tests/nehe6_multi.py Ln#105,110,121,127
- {LGPL} VisionEgg/src/Gratings.py Ln#196,253
- {LGPL} VisionEgg/src/Textures.py Ln#1117,1128,1153,1180,1191
- GL_TEXTURE0_ARB
-