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

CL_ColorMap Class Reference

#include <colormap.h>

List of all members.

Public Methods

 CL_ColorMap (unsigned int red_mask, unsigned int green_mask, unsigned int blue_mask, unsigned int alpha_mask)
 CL_ColorMap (CL_Target *target)
unsigned int calc_color (float r, float g, float b, float a)

Public Attributes

unsigned int m_red_length
unsigned int m_red_start
unsigned int m_green_length
unsigned int m_green_start
unsigned int m_blue_length
unsigned int m_blue_start
unsigned int m_alpha_length
unsigned int m_alpha_start

Private Methods

void init (unsigned int red_mask, unsigned int green_mask, unsigned int blue_mask, unsigned int alpha_mask)
int start_bit (unsigned int mask)
int length (unsigned int mask, unsigned int start_bit)


Constructor & Destructor Documentation

CL_ColorMap::CL_ColorMap ( unsigned int red_mask,
unsigned int green_mask,
unsigned int blue_mask,
unsigned int alpha_mask ) [inline]
 

Definition at line 10 of file colormap.h.

CL_ColorMap::CL_ColorMap ( CL_Target * target ) [inline]
 

Definition at line 19 of file colormap.h.


Member Function Documentation

unsigned int CL_ColorMap::calc_color ( float r,
float g,
float b,
float a ) [inline]
 

Definition at line 28 of file colormap.h.

void CL_ColorMap::init ( unsigned int red_mask,
unsigned int green_mask,
unsigned int blue_mask,
unsigned int alpha_mask ) [inline, private]
 

Definition at line 54 of file colormap.h.

Referenced by CL_ColorMap().

int CL_ColorMap::length ( unsigned int mask,
unsigned int start_bit ) [inline, private]
 

Definition at line 87 of file colormap.h.

Referenced by init().

int CL_ColorMap::start_bit ( unsigned int mask ) [inline, private]
 

Definition at line 71 of file colormap.h.

Referenced by init().


Member Data Documentation

unsigned int CL_ColorMap::m_alpha_length
 

Definition at line 51 of file colormap.h.

unsigned int CL_ColorMap::m_alpha_start
 

Definition at line 51 of file colormap.h.

unsigned int CL_ColorMap::m_blue_length
 

Definition at line 50 of file colormap.h.

unsigned int CL_ColorMap::m_blue_start
 

Definition at line 50 of file colormap.h.

unsigned int CL_ColorMap::m_green_length
 

Definition at line 49 of file colormap.h.

unsigned int CL_ColorMap::m_green_start
 

Definition at line 49 of file colormap.h.

unsigned int CL_ColorMap::m_red_length
 

Definition at line 48 of file colormap.h.

unsigned int CL_ColorMap::m_red_start
 

Definition at line 48 of file colormap.h.


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