256 color ARGB palette class. More...
#include <palette.h>
Public Member Functions | |
Construction | |
CL_Palette () | |
Constructs a palette. | |
CL_Palette (const unsigned int *copy) | |
Constructs a Palette. | |
Attributes | |
| |
CL_Color | colors [256] |
Palette color entries. | |
const CL_Color & | operator[] (int index) const |
Return color at index. | |
CL_Color & | operator[] (int index) |
operator const unsigned int * () const | |
Returns the palette in ARGB8888 format. | |
operator unsigned int * () const |
256 color ARGB palette class.
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. |
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] |
Palette color entries.