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

#include <pgl.h>

HAB     hab;   /*  Handle to the anchor block. */
HPAL    hpal;  /*  Handle to the palette. */
HGC     hgc;   /*  Handle to the color index OpenGL context. */
BOOL    rc;    /*  Success indicator. */

rc = pglSelectColorIndexPalette(hab, hpal,
       hgc);


[Back: pglSelectColorIndexPalette]
[Next: pglSelectColorIndexPalette Parameter - hab]