Public Member Functions

GamConvert16 Class Reference

Search for all occurrences

Detailed Description

See also:
Class GammaMgr, Class GamConvet8.

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.

#include <gamma.h>

Inheritance diagram for GamConvert16:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  GamConvert16 (float gam=1.0f)
  ~GamConvert16 ()
void  SetGamma (float gam)
UWORD  Convert (UWORD v)

Constructor & Destructor Documentation

GamConvert16 ( float  gam = 1.0f )
Remarks:
Constructor. The gamma table is built using the specified gamma setting.
Remarks:
Destructor. The gamma table is deleted.

Member Function Documentation

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.
UWORD Convert ( UWORD  v ) [inline]
Remarks:
Gamma corrects the specified color.
Parameters:
UWORD v

The color to gamma correct.
Returns:
The gamma corrected value.
{ return gtab[v>>RCSH16]; }

GamConvert16 GamConvert16 GamConvert16 GamConvert16 GamConvert16 GamConvert16 GamConvert16 GamConvert16 GamConvert16 GamConvert16
GamConvert16 GamConvert16 GamConvert16 GamConvert16 GamConvert16 GamConvert16 GamConvert16 GamConvert16 GamConvert16 GamConvert16