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

CL_Color Class Reference

#include <pixelformat.h>

List of all members.

Static Public Methods

unsigned int get_red_mask (EPixelFormat pixelformat)
unsigned int get_green_mask (EPixelFormat pixelformat)
unsigned int get_blue_mask (EPixelFormat pixelformat)
unsigned int get_alpha_mask (EPixelFormat pixelformat)
unsigned int get_color (EPixelFormat fmt, int r, int g, int b, int a=255)
unsigned int get_color (EPixelFormat fmt, float r, float g, float b, float a=1.0)
 param: fmt - the pixel format to useparam: r - the red value as an integerparam: g - the green value as an integerparam: b - the blue value as an integerparam: a - the alpha value as an integer(defaults to opaque)retval: the color value in the requested pixel format.

unsigned int get_color (unsigned int rmask, unsigned int gmask, unsigned int bmask, unsigned int amask, int r, int g, int b, int a=255)
 param: fmt - the pixel format to useparam: r - the red value as a floating point numberparam: g - the green value as a floating point numberparam: b - the blue value as a floating point numberparam: a - the alpha value as a floating point number (defaults to opaque)retval: the color value in the requested pixel format.

unsigned int get_color (unsigned int rmask, unsigned int gmask, unsigned int bmask, unsigned int amask, float r, float g, float b, float a=1.0)
 param: rmask - the bit mask for redparam: gmask - the bit mask for greenparam: bmask - the bit mask for blueparam: amask - the bit mask for the alphaparam: r - the red value as an integerparam: g - the green value as an integerparam: b - the blue value as an integerparam: a - the alpha value as an integer (default is opaque)retval: the color value in the format you specify.

unsigned int get_color (CL_Target *target, int r, int g, int b, int a=255)
 param: rmask - the bit mask for redparam: gmask - the bit mask for greenparam: bmask - the bit mask for blueparam: amask - the bit mask for the alphaparam: r - the red value as a floating point param: g - the green value as a floating point param: b - the blue value as a flaoting pointparam: a - the alpha value as a floating point (default is opaque)retval: the color value in the format you specify.

unsigned int get_color (CL_Target *target, float r, float g, float b, float a=1.0)
 param: target - a pointer to a target param: r - the red value as an integerparam: g - the green value as an integerparam: b - the blue value as an integerparam: a - the alpha value (default is opaque).

float get_color (unsigned int cmask, int color)
 param: target - pointer to the targetparam: r - the red value as a floating pointparam: g - the green value as a floating pointparam: b - the blue value as a floating point.


Member Function Documentation

unsigned int CL_Color::get_alpha_mask ( EPixelFormat pixelformat ) [static]
 

unsigned int CL_Color::get_blue_mask ( EPixelFormat pixelformat ) [static]
 

float CL_Color::get_color ( unsigned int cmask,
int color ) [static]
 

param: target - pointer to the targetparam: r - the red value as a floating pointparam: g - the green value as a floating pointparam: b - the blue value as a floating point.

unsigned int CL_Color::get_color ( CL_Target * target,
float r,
float g,
float b,
float a = 1.0 ) [static]
 

param: target - a pointer to a target param: r - the red value as an integerparam: g - the green value as an integerparam: b - the blue value as an integerparam: a - the alpha value (default is opaque).

unsigned int CL_Color::get_color ( CL_Target * target,
int r,
int g,
int b,
int a = 255 ) [static]
 

param: rmask - the bit mask for redparam: gmask - the bit mask for greenparam: bmask - the bit mask for blueparam: amask - the bit mask for the alphaparam: r - the red value as a floating point param: g - the green value as a floating point param: b - the blue value as a flaoting pointparam: a - the alpha value as a floating point (default is opaque)retval: the color value in the format you specify.

unsigned int CL_Color::get_color ( unsigned int rmask,
unsigned int gmask,
unsigned int bmask,
unsigned int amask,
float r,
float g,
float b,
float a = 1.0 ) [static]
 

param: rmask - the bit mask for redparam: gmask - the bit mask for greenparam: bmask - the bit mask for blueparam: amask - the bit mask for the alphaparam: r - the red value as an integerparam: g - the green value as an integerparam: b - the blue value as an integerparam: a - the alpha value as an integer (default is opaque)retval: the color value in the format you specify.

unsigned int CL_Color::get_color ( unsigned int rmask,
unsigned int gmask,
unsigned int bmask,
unsigned int amask,
int r,
int g,
int b,
int a = 255 ) [static]
 

param: fmt - the pixel format to useparam: r - the red value as a floating point numberparam: g - the green value as a floating point numberparam: b - the blue value as a floating point numberparam: a - the alpha value as a floating point number (defaults to opaque)retval: the color value in the requested pixel format.

unsigned int CL_Color::get_color ( EPixelFormat fmt,
float r,
float g,
float b,
float a = 1.0 ) [static]
 

param: fmt - the pixel format to useparam: r - the red value as an integerparam: g - the green value as an integerparam: b - the blue value as an integerparam: a - the alpha value as an integer(defaults to opaque)retval: the color value in the requested pixel format.

unsigned int CL_Color::get_color ( EPixelFormat fmt,
int r,
int g,
int b,
int a = 255 ) [static]
 

unsigned int CL_Color::get_green_mask ( EPixelFormat pixelformat ) [static]
 

unsigned int CL_Color::get_red_mask ( EPixelFormat pixelformat ) [static]
 


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