This class provides methods that deal with colors,
Description
including the ability to find color-component bit
masks for particular pixel formats. Also you can
use this class to get colors, in any of the
different pixel formats, from the color components
(Red, Blue, Green and Alpha).
Often you can specify color components as either
integers or floating points (the component value
divided by it's maximum possible value.)
Class members
static unsigned int get_red_mask(EPixelFormat pixelformat)
static unsigned int get_green_mask(EPixelFormat pixelformat)
static unsigned int get_blue_mask(EPixelFormat pixelformat)
static unsigned int get_alpha_mask(EPixelFormat pixelformat)
static unsigned int get_color(
EPixelFormat fmt,
int r,
int g,
int b,
int a=255)
static unsigned int get_color(
EPixelFormat fmt,
float r,
float g,
float b,
float a=1.0)
static 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)
static 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)
static unsigned int get_color(
CL_Target* target,
int r,
int g,
int b,
int a=255)
static unsigned int get_color(
CL_Target* target,
float r,
float g,
float b,
float a=1.0)
static float get_color(
unsigned int cmask,
int color)
See Also
None
Back to index
|