The type parameter specifies the data type of each color component and stride gives the byte stride from one color to the next allowing vertexes and attributes to be packed into a single array or stored in separate arrays. Static elements may be modified by the application, but once they are modified, the application must explicitly respecify the array before using it for any rendering. When a color array is specified, size , type , stride , count and pointer are saved as client-side state, and static array elements may be cached by the implementation. If enabled, the color array is used when glDrawArraysEXT or glArrayElementEXT is called. Use glArrayElementEXT to specify primitives by indexing vertexes and vertex attributes.
Parameters size Specifies the number of components per color.
It must be 3 or 4. type Specifies the data type of each color component in the array. If stride is zero the colors are understood to be tightly packed in the array. Notes Non-static array elements are not accessed until glArrayElementEXT or glDrawArraysEXT is executed. By default the color array is disabled and it won't be accessed when glArrayElementEXT or glDrawArraysEXT is called. Although, it is not an error to call glColorPointerEXT between the execution of glBegin and the corresponding execution of glEnd , the results are undefined.