select active texture unit
Signature
Parameters
| Variables | Description |
|---|---|
| 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_TEXTURE
i
,
where
i
ranges from 0 (
GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS
- 1).
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_TEXTURE
i
,
where
i
ranges from 0 to (
GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS
- 1).
Associated Gets
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. This document is licensed under the SGI
Free Software B License. For details, see
http://oss.sgi.com/projects/FreeB/
.
Sample Code References
The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.
glActiveTexture