#include <render/ddgcolor.h>
Public Members | |||
ddgColor3 ( const ddgColor3 *c) | |||
Construct a color from a color. | |||
ddgColor3 ( unsigned char r, unsigned char g, unsigned char b) | |||
Construct a color from R,G,B values. | |||
ddgColor3 ( void ) | |||
Create a default white color. | |||
operator const unsigned char * () | |||
return the value of the vector as a unsigned char array. | |||
operator ddgColor3 * () | |||
return a pointer to a vector from a vector. | |||
unsigned char | operator[] (int n) const | ||
Get value of one dimension of the vector. | |||
void | set (const ddgColor3 *c) | ||
Set color into color object. | |||
void | set (unsigned char r, unsigned char g,unsigned char b) | ||
Set color into color object. | |||
void | enable (void) | ||
Set the color into the graphics system. | |||
void | linterp (const ddgColor3 *a, const ddgColor3 *b, float t) | ||
Linearly Interpolate a new color from two other colors. | |||
void | einterp (const ddgColor3 *a, const ddgColor3 *b, float t) | ||
Exponentially Interpolate a new color from two other colors. | |||
void | cinterp (const ddgColor3 *a, const ddgColor3 *b, float t) | ||
Cosine Interpolate a new color from two other colors. | |||
void | binterp (const ddgColor3 *a, const ddgColor3 *b, float t) | ||
Bilinear Interpolate a new color from two other colors. | |||
unsigned char | r (void) | ||
Return red component. | |||
unsigned char | g (void) | ||
Return green component. | |||
unsigned char | b (void) | ||
Return blue component. | |||
ddgColor3 ( const ddgColor3 *c) | |||
Construct a color from a color. | |||
ddgColor3 ( unsigned char r, unsigned char g, unsigned char b) | |||
Construct a color from R,G,B values. | |||
ddgColor3 ( void ) | |||
Create a default white color. | |||
operator const unsigned char * () | |||
return the value of the vector as a unsigned char array. | |||
operator ddgColor3 * () | |||
return a pointer to a vector from a vector. | |||
unsigned char | operator[] (int n) const | ||
Get value of one dimension of the vector. | |||
void | set (const ddgColor3 *c) | ||
Set color into color object. | |||
void | set (unsigned char r, unsigned char g,unsigned char b) | ||
Set color into color object. | |||
void | linterp (const ddgColor3 *a, const ddgColor3 *b, float t) | ||
Linearly Interpolate a new color from two other colors. | |||
void | einterp (const ddgColor3 *a, const ddgColor3 *b, float t) | ||
Exponentially Interpolate a new color from two other colors. | |||
void | cinterp (const ddgColor3 *a, const ddgColor3 *b, float t) | ||
Cosine Interpolate a new color from two other colors. | |||
void | binterp (const ddgColor3 *a, const ddgColor3 *b, float t) | ||
Bilinear Interpolate a new color from two other colors. | |||
unsigned char | r (void) | ||
Return red component. | |||
unsigned char | g (void) | ||
Return green component. | |||
unsigned char | b (void) | ||
Return blue component. | |||
unsigned char | v [3] | ||
ddgColor data. |
This a 3 component color, with R,G,B values from 0 to 1.