glActiveTexture.3G - Man Page
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 80. 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 80.
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.
Version Support
OpenGL Version | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Function / Feature Name | 2.0 | 2.1 | 3.0 | 3.1 | 3.2 | 3.3 | 4.0 | 4.1 | 4.2 | 4.3 | 4.4 | 4.5 |
glActiveTexture | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |
See Also
glGenTextures(), glBindTexture(), glCompressedTexImage1D(), glCompressedTexImage2D(), glCompressedTexImage3D(), glCompressedTexSubImage1D(), glCompressedTexSubImage2D(), glCompressedTexSubImage3D(), glCopyTexImage1D(), glCopyTexImage2D(), glCopyTexSubImage1D(), glCopyTexSubImage2D(), glCopyTexSubImage3D(), glDeleteTextures() glIsTexture(), glTexImage1D(), glTexImage2D(), glTexImage2DMultisample(), glTexImage3D(), glTexImage3DMultisample(), glTexSubImage1D(), glTexSubImage2D(), glTexSubImage3D(), glTexParameter(),
Copyright
Copyright © 1991-2006 Silicon Graphics, Inc. Copyright © 2010-2014 Khronos Group. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/.
Copyright
Copyright © 1991-2006 Silicon Graphics, Inc.
Copyright © 2010-2014 Khronos Group
Referenced By
glCompressedTexImage1D.3G(3), glCompressedTexImage2D.3G(3), glCompressedTexImage3D.3G(3), glCompressedTexSubImage1D.3G(3), glCompressedTexSubImage2D.3G(3), glCompressedTexSubImage3D.3G(3), glEnable.3G(3), glGetCompressedTexImage.3G(3), glGetTexImage.3G(3), glGetTexLevelParameter.3G(3), glTexImage1D.3G(3), glTexImage2D.3G(3), glTexImage3D.3G(3), glTexParameter.3G(3), glTexSubImage1D.3G(3), glTexSubImage2D.3G(3), glTexSubImage3D.3G(3).