glColorPointerGLint
The glColorPointer function in OpenGL is used to specify the location and data format of an array of color values that will be used for rendering. It does not immediately cause colors to be assigned to vertices; instead, it sets up a pointer to this data. This array will be accessed by subsequent calls to functions like glDrawArrays or glDrawElements.
The function takes several arguments. The first, size, specifies the number of components per color (typically
When vertex arrays are enabled, using a function like glEnableClientState with GL_COLOR_ARRAY, OpenGL will use the