#include <color.h>
Collaboration diagram for Color:
Public Member Functions | |
Color () | |
Color (unsigned int uiColor) | |
Color (float fR, float fG, float fB, float fA=1.0f) | |
void | Set (float fR, float fG, float fB, float fA=1.0f) |
void | Set (unsigned int uiColor) |
void | Set (const Color &rkColor) |
operator float * () | |
operator const float * () const | |
float & | operator[] (int iComponent) |
const float & | operator[] (int iComponent) const |
Color & | operator= (const Color &rkColor) |
bool | operator== (const Color &rkColor) const |
bool | operator!= (const Color &rkColor) const |
Public Attributes | |
float | r |
float | g |
float | b |
float | a |
Static Public Attributes | |
const NE_STATIC Color | BLACK |
const NE_STATIC Color | WHITE |
const NE_STATIC Color | RED |
const NE_STATIC Color | GREEN |
const NE_STATIC Color | BLUE |
|
Reset to [0,0,0,1] |
|
Set values from 32bit integer (one byte per channel) color
|
|
Set values
|
|
Set values
|
|
Set values
|
|
Set values
|
|
Conversion, to allow easy component access |
|
Conversion, to allow easy component access |
|
Array access to elements |
|
Array access to elements |
|
Copy
|
|
Compare
|
|
Compare
|
|
Components |
|
Components |
|
Components |
|
Components |
|
Predefined color, black |
|
Predefined color, white |
|
Predefined color, white |
|
Predefined color, white |
|
Predefined color, white |