Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

CL_Palette Class Reference

also: CL_Display - The system palette is set here.also: CL_DisplayCard - The card specific system palette is set here.also: CL_SurfaceProvider - Palettelized surfaces use this class. More...

#include <palette.h>

List of all members.

Public Methods

 CL_Palette ()
virtual ~CL_Palette ()
 CL_Palette (unsigned char *palette, int num_colors=256)
 CL_Palette (char *palette_id, CL_InputSourceProvider *provider)
 param: palette - palette source.param: num_colors - number of palette colors.

 CL_Palette (CL_InputSource *input)
 param: palette_id - ID used to get palette from provider.param: provider - Input source type (eg. a datafile or a normal file).


Public Attributes

unsigned char* palette
int num_colors


Detailed Description

also: CL_Display - The system palette is set here.also: CL_DisplayCard - The card specific system palette is set here.also: CL_SurfaceProvider - Palettelized surfaces use this class.

Definition at line 23 of file palette.h.


Constructor & Destructor Documentation

CL_Palette::CL_Palette ( )
 

virtual CL_Palette::~CL_Palette ( ) [virtual]
 

CL_Palette::CL_Palette ( unsigned char * palette,
int num_colors = 256 )
 

CL_Palette::CL_Palette ( char * palette_id,
CL_InputSourceProvider * provider )
 

param: palette - palette source.param: num_colors - number of palette colors.

CL_Palette::CL_Palette ( CL_InputSource * input )
 

param: palette_id - ID used to get palette from provider.param: provider - Input source type (eg. a datafile or a normal file).


Member Data Documentation

int CL_Palette::num_colors
 

Definition at line 39 of file palette.h.

unsigned char* CL_Palette::palette
 

Definition at line 36 of file palette.h.


The documentation for this class was generated from the following file:
Generated at Wed Apr 4 19:57:17 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001