|
|
|
|
GetGammaCorrectDataExt
Returns the current hardware gamma correction table using 16-bit per color channel
Declaration
void NAPI GA_driverFuncs::GetGammaCorrectDataExt(
GA_paletteExt *pal,
N_int32 num,
N_int32 index)
Prototype In
snap/graphics.h
Parameters
pal |
Place to return the gamma data |
num |
Number of gamma entries to read |
index |
Index of first entry to read |
Description
This function reads the hardware gamma correction tables for 15 bit and above graphics modes. The gamma correction tables are used in these graphics modes to adjust the response curves of each of the three color guns for color matching purposes. The gamma correction tables are assumed to be 256 entries deep with three independent channels for each of red, green and blue. Each value in the gamma tables are 16-bits wide, with a range of 0 to 65535. Note that this is different to the regular GetGammaCorrectData 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.
Note: If this hardware does not support gamma correction, this function will be a NULL pointer.
See Also
SetPaletteDataExt, GetPaletteDataExt, SetGammaCorrectDataExt, GetGammaCorrectData, SetPaletteData, GetPaletteData, SetGammaCorrectData
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com