Supported Browsers Home   
SetGammaCorrectData Previous   
SetPaletteData Next   
GA_driverFuncs Up   

SetGammaCorrectDataExt

Programs the hardware gamma correction table using 16-bit per color channel

Declaration

void NAPI GA_driverFuncs::SetGammaCorrectDataExt(
    GA_paletteExt *pal,
    N_int32 num,
    N_int32 index,
    N_int32 waitVRT)

Prototype In

snap/graphics.h

Parameters

pal

Pointer to the gamma data to program

num

Number of gamma entries to program

index

Index of first entry to program

waitVRT

Wait for vertical retrace flag

 

Description

This function programs the 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 SetGammaCorrectData 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 SetGammaCorrectData except it deals with a gamma ramp using 16-bit values per channel.

Note:    If this hardware does not support gamma correction, this function will be a NULL pointer.

See Also

GetPaletteDataExt, SetPaletteDataExt, GetGammaCorrectDataExt, SetGammaCorrectData, GetPaletteData, SetPaletteData, GetGammaCorrectData

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