Class GamConvert16

3DS Max Plug-In SDK

Class GamConvert16

See Also: Class GammaMgr, Class GamConvet8.

class GamConvert16

Description:

A temporary table for converting 16->16. A developer may define an instance of this class and it will build a gamma correction table. The constructor will build the table with the specified gamma setting and the destructor will free the table. All methods of this class are implemented by the system.

Methods:

Prototype:

GamConvert16(float gam=1.0f);

Remarks:

Constructor. The gamma table is built using the specified gamma setting.

Prototype:

~GamConvert16();

Remarks:

Destructor. The gamma table is deleted.

Prototype:

void SetGamma(float gam);

Remarks:

Sets the gamma setting to the value specified and builds the gamma table.

Parameters:

float gam

The gamma value to set.

Prototype:

UWORD Convert(UWORD v);

Remarks:

Gamma corrects the specified color.

Parameters:

UWORD v

The color to gamma correct.

Return Value:

The gamma corrected value.