Description

glGetColorTable returns in table the contents of the color table specified by target. No pixel transfer operations are performed, but pixel storage modes that are applicable to glReadPixels are performed.

Color components that are requested in the specified format, but which are not included in the internal of the color lookup table, are returned as zero. The assignments of internal color components to the components requested by format are

Internal ComponentResulting Component
redred
greengreen
blueblue
alphaalpha
luminancered
intensityred