B
glBindTexture
Chapter 2
29
Notes
glBindTexture is available only if the GL version is 1.1 or greater.
Errors
• GL_INVALID_ENUM is generated if target is not one of the allowable values.
• GL_INVALID_OPERATION is generated if texture has a dimensionality that
doesn’t match that of target.
• GL_INVALID_OPERATION is generated if glBindTexture is executed between the
execution of glBegin and the corresponding execution of glEnd.
Associated Gets
glGet with argument GL_TEXTURE_1D_BINDING
glGet with argument GL_TEXTURE_2D_BINDING
See Also
glAreTexturesResident,
glDeleteTextures,
glGenTextures,
glGet,
glGetTexParameter,
glIsTexture,
glPrioritizeTextures,
glTexImage1D,
glTexImage2D,
glTexParameter