glGetColorTable

glGetColorTable: man2/glGetColorTable.xml

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. If a non-zero named buffer object is bound to the GL_PIXEL_PACK_BUFFER target (see glBindBuffer ) while a histogram table is requested, table is treated as a byte offset into the buffer object's data store. Color components that are requested in the specified format, but which are not included in the internal format of the color lookup table, are returned as zero. The assignments of internal color components to the components requested by format are Internal Component Resulting Component Red Red Green Green Blue Blue Alpha Alpha Luminance Red Intensity Red

glGetColorTable is present only if ARB_imaging is returned when glGetString is called with an argument of GL_EXTENSIONS.

@OpenGL_Version(OGLIntroducedIn.Unknown)
@OpenGL_Extension("GL_ARB_imaging")
fn_glGetColorTable glGetColorTable;

See Also

glColorTable, glColorTableParameter

Meta