#include <xsi_color.h>
This struct represents an RGBA color.
The RBGA component values are stored as double precision numbers.
CColor objects are created from OGLLight and OGLMaterial objects.
In most cases, the component values are normalized to the range 0 to 1. TrianglePoint::GetColor is an exception, and returns values in the range 0 to 255.
Other XSI objects and properties store colors differently:
Scene_Material.Phong.diffuse.green
). These component
values are normalized and use double precision.B2|B1|B0|G2|G1|G0|R2|R1|R0|0|
Public Member Functions |
|
CColor () | |
CColor (const CColor &in_color) | |
CColor (double in_rc, double in_gc, double in_bc, double in_ac) | |
bool | operator== (const CColor &in_color) const |
bool | operator!= (const CColor &in_color) const |
Public Attributes |
|
double | r |
double | g |
double | b |
double | a |
CColor | ( | double | in_rc, |
double | in_gc, | ||
double | in_bc, | ||
double | in_ac | ||
) | [inline] |
Constructs a new CColor object from RGBA values.
in_rc | Red component value. |
in_gc | Green component value. |
in_bc | Blue component value. |
in_ac | Alpha component value. |
bool operator== | ( | const CColor & | in_color | ) | const [inline] |
bool operator!= | ( | const CColor & | in_color | ) | const [inline] |
double r |
Red component value
double g |
Green component value
double b |
Blue component value
double a |
Alpha component value