CL_Palette Class Reference
[clanDisplay Display]

256 color ARGB palette class. More...

#include <palette.h>

List of all members.

Attributes

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
CL_Color colors [256]
 Palette color entries.

Public Member Functions

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


Detailed Description

256 color ARGB palette class.


Constructor & Destructor Documentation

CL_Palette::CL_Palette  )  [inline]
 

Constructs a palette.

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

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

Constructs a Palette.

Parameters:
copy = value


Member Function Documentation

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

Returns the palette in ARGB8888 format.

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

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

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

Return color at index.


Member Data Documentation

CL_Color CL_Palette::colors[256]
 

Palette color entries.


The documentation for this class was generated from the following file:
Generated on Thu Dec 3 02:39:39 2009 for ClanLib by  doxygen 1.4.6