[ Previous | Next
| Table Of Contents

7.5 INT pglSelectColorIndexPalette(HAB,HPAL,HGC)

INT pglSelectColorIndexPalette(HAB,HPAL,HGC)

Description:

This call will pass in a color index palette for OpenGL to use. It is only needed when using a context created with a color index VISUALCONFIG. When using an RGB VISUALCONFIG, OpenGL will set up the palette itself . This call must be made before a context can be bound to a window for the first time.

Parameters:
HAB hab Handle to anchor block 
HPAL hpal Handle to Palette 
HGC hgc Handle to OpenGL context

Return Values:
NULL Palette Selection was not successful 
TRUE Palette Selection was successful

Notes:

Users should NOT call GpiSelectPalette, OpenGL will take care of palette selection.

This is only useful for Color Index Visual Configurations. 


[ Previous | Next | Table Of Contents ]