Execution of glColorPointer 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.
glColorPointer is typically implemented on the client side.
Color 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_COLOR_ARRAY
glGet with argument GL_COLOR_ARRAY_SIZE
glGet with argument GL_COLOR_ARRAY_TYPE
glGet with argument GL_COLOR_ARRAY_STRIDE
glGetPointerv with argument GL_COLOR_ARRAY_POINTER
See Also
glArrayElement,
glDrawArrays,
glDrawElements,
glEdgeFlagPointer,
glEnable,
glGetPointer,
glIndexPointer,
glInterleavedArrays,
glNormalPointer,
glPopClientAttrib,
glPushClientAttrib,
glTexCoordPointer,
glVertexPointer
Chapter 3
GL_INVALID_VALUE is generated if size is not 3 or 4.
GL_INVALID_ENUM is generated if type is not an accepted value.
GL_INVALID_VALUE is generated if stride is negative.
C
glColorPointer
67