![]() | |
![]() | ![]() |
Entire Class Index | Main Class Index | Cross Index | Global Index |
The Color class
Contained in: global
Derived from:
none
Derived by:
none
Group: Display (Display 2D)
#include <ClanLib/display.h>
public function member index: |
||
Attributes: |
||
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); |
fmt - the pixel format to use
r - the red value as an integer
g - the green value as an integer
b - the blue value as an integer
a - the alpha value as an integer(defaults to opaque)
Returns - the color value in the requested pixel format
fmt - the pixel format to use
r - the red value as a floating point number
g - the green value as a floating point number
b - the blue value as a floating point number
a - the alpha value as a floating point number (defaults to opaque)
Returns - the color value in the requested pixel format
rmask - the bit mask for red
gmask - the bit mask for green
bmask - the bit mask for blue
amask - the bit mask for the alpha
r - the red value as an integer
g - the green value as an integer
b - the blue value as an integer
a - the alpha value as an integer (default is opaque)
Returns - the color value in the format you specify
rmask - the bit mask for red
gmask - the bit mask for green
bmask - the bit mask for blue
amask - the bit mask for the alpha
r - the red value as a floating point
g - the green value as a floating point
b - the blue value as a flaoting point
a - the alpha value as a floating point (default is opaque)
Returns - the color value in the format you specify
target - a pointer to a target </p>
r - the red value as an integer
g - the green value as an integer
b - the blue value as an integer
a - the alpha value (default is opaque)
target - pointer to the target
r - the red value as a floating point
g - the green value as a floating point
b - the blue value as a floating point
cmask - the bit mask for the color component you want
color - the color to extract the component from
Returns - the R, G, B or A value as a floating point