The glIndexPointerEXT subroutine specifies the location and data format of an array of color indexes to use when rendering. 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 index array is specified, 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 index array is used when glDrawArraysEXT or glArrayElementEXT is called. Use glArrayElementEXT to specify primitives by indexing vertexes and vertex attributes.
Parameters type Specifies the data type of each color index in the array.
If stride is zero the color indexes 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 index array is disabled and it won't be accessed when glArrayElementEXT or glDrawArraysEXT is called. Although, it is not an error to call glIndexPointerEXT between the execution of glBegin and the corresponding execution of glEnd , the results are undefined. Since the color index array parameters are client side state, they are not saved or restored by glPushAttrib and glPopAttrib .