T
glTexCoordPointer
Notes
glTexCoordPointer is available only if the GL version is 1.1 or greater.
The texture coordinate array is initially disabled and it won't be accessed when
glArrayElement, glDrawElements or glDrawArrays is called.
Execution of glTexCoordPointer is not allowed between the execution of glBegin and the
corresponding execution of glEnd, but an error may or may not be generated. If no error
is generated, the operation is undefined.
glTexCoordPointer is typically implemented on the client side with no protocol.
The texture coordinate array parameters are client-side state and are therefore not
saved or restored by glPushAttrib and glPopAttrib. Use glPushClientAttrib and
glPopClientAttrib instead.
Errors
•
•
•
Associated Gets
glIsEnabled with argument GL_TEXTURE_COORD_ARRAY
glGet with argument GL_TEXTURE_COORD_ARRAY_SIZE
glGet with argument GL_TEXTURE_COORD_ARRAY_TYPE
glGetPointerv with argument GL_TEXTURE_COORD_ARRAY_POINTER
See Also
glArrayElement,
glColorPointer,
glDrawArrays,
glDrawElements,
glEdgeFlagPointer,
glEnable,
glGetPointerv,
glIndexPointer,
glNormalPointer,
glPopClientAttrib,
glPushClientAttrib,
glTexCoord,
glVertexPointer
426
GL_INVALID_VALUE is generated if size is not 1, 2, 3, or 4.
GL_INVALID_ENUM is generated if type is not an accepted value.
GL_INVALID_VALUE is generated if stride is negative.
Chapter 18