GM_realizePalette

Programs the hardware color palette

Declaration

void MGLAPI GM_realizePalette(
int numColors,
int startIndex,
int waitVRT)

Prototype In

gm/gm.h

Parameters

numColors | Number of colors to set
startIndex | Starting index in device context palette
waitVRT | True to wait for vertical retrace

Description

This function programs the hardware color palette from the current display device context. You should first call GM_setPalette to set the color palette entries to the values that you require before calling this function.

Note: If we have a memory back buffer we also realize the palette values for this to ensure we have an identity palette for blit operations for maximum speed.

See Also

GM_setPalette

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com