SetPaletteDataExt
Programs the hardware color palette using 16-bit per color channel
Declaration
void NAPI GA_driverFuncs::SetPaletteDataExt(
GA_paletteExt *pal,
N_int32 num,
N_int32 index,
N_int32 waitVRT)
Prototype In
snap/graphics.h
Parameters
pal |
Pointer to the extended palette data to program |
num |
Number of palette entries to program |
index |
Index of first entry to program |
waitVRT |
Wait for vertical retrace flag |
Description
This function programs the color palette information for the current graphics mode, and is only valid in 8-bpp and lower color index modes. Color palette information is passed to the function in an array of GA_paletteExt structures. Each value in the GA_paletteExt structure is 16-bits wide, with a range of 0 to 65535. Note that this is different to the regular SetPaletteData function, which takes 8-bit wide values. Internally the driver will convert the 16-bit palette values to 8-bits if this is what the underlying hardware supports.
This function is basically the same as SetPaletteData except it deals with a palette with 16-bit color values per channel.
See Also
GetPaletteDataExt, SetGammaCorrectDataExt, GetGammaCorrectDataExt, SetPaletteData, GetPaletteData, SetGammaCorrectData, GetGammaCorrectData
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com