glActiveTexture — select active texture unit
void glActiveTexture( | GLenum texture) ; |
texture
Specifies which texture unit to make active. The number of texture units is implementation dependent, but must be at least 8. texture
must be one of GL_TEXTURE
, where i ranges from 0 to (GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS
- 1). The initial value is GL_TEXTURE0
.
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 8.
GL_INVALID_ENUM
is generated if texture
is not one of GL_TEXTURE
, where i ranges from 0 to (GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS
- 1).
open.gl - Textures Objects and Parameters
opengl-tutorial.org - Tutorial 13 : Normal Mapping
Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed under the SGI Free Software B License. For details, see https://web.archive.org/web/20171022161616/http://oss.sgi.com/projects/FreeB/.