PEXLookupTable PEXCreateLookupTable( Display *display, Drawable drawable, int table_type )
The resource identifier of the newly-created lookup table. PEXLookupTable data structure.
Invoke PEXCreateLookupTable to create a lookup table resource of the specified type.
This function returns the resource identifier of the new lookup table. You can then specify this resource identifier to refer to the created lookup table. See Table Types, Availability, and Definitions for the types of tables defined by PEXlib for creation with this function.
You can only use the newly-created lookup table with drawables having the same depth and root as the specified drawable.
For an overview, see Lookup Tables.