CL_Palette Class Reference
[clanDisplay Display]

256 color ARGB palette class. More...

#include <palette.h>

List of all members.

Public Member Functions


 CL_Palette ()
 Constructs a palette.
 CL_Palette (const unsigned int *copy)
 Constructs a Palette.


CL_Color colors [256]
 Palette color entries.
const CL_Coloroperator[] (int index) const
 Return color at index.
CL_Coloroperator[] (int index)
 operator const unsigned int * () const
 Returns the palette in ARGB8888 format.
 operator unsigned int * () const

Detailed Description

256 color ARGB palette class.

Constructor & Destructor Documentation

CL_Palette::CL_Palette (  )  [inline]

Constructs a palette.

CL_Palette::CL_Palette ( const unsigned int *  copy  )  [inline]

Constructs a Palette.

copy Integer array of ARGB8888 color components to use as initial palette.

Member Function Documentation

CL_Palette::operator const unsigned int * (  )  const [inline]

Returns the palette in ARGB8888 format.

CL_Palette::operator unsigned int * (  )  const [inline]
const CL_Color& CL_Palette::operator[] ( int  index  )  const [inline]

Return color at index.

CL_Color& CL_Palette::operator[] ( int  index  )  [inline]

Member Data Documentation

Palette color entries.

The documentation for this class was generated from the following file: