Notes

glColorPointer is available only if the GL version is 1.1 or greater.

The color array is initially disabled and isn't accessed when glArrayElement, glDrawArrays, glDrawRangeElements, or glDrawElements is called.

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.

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