Texture Units
Texture units are named GL_TEXTURE0, GL_TEXTURE1, etc.
The unit names are used with two new functions.
- glActiveTexture(texture_unit)
-
selects the current unit to be affected by texture calls
(such as glBindTexture, glTexEnv, glTexGen).
- glMultiTexCoord2f(texture_unit, s, t)
-
Sets texture coordinates for one unit