ClanLib  2.3.7
List of all members
CL_Palette Class Reference

256 color ARGB palette class. More...

#include <palette.h>

Public Member Functions

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

Attributes

CL_Color colors [256]
 Palette color entries. More...
 
const CL_Coloroperator[] (int index) const
 Return color at index. More...
 
CL_Coloroperator[] (int index)
 
 operator const unsigned int * () const
 Returns the palette in ARGB8888 format. More...
 
 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.

Parameters
copyInteger 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

CL_Color CL_Palette::colors[256]

Palette color entries.


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