|
| ColourValue (const uchar *byte) |
|
| ColourValue (float red=1.0f, float green=1.0f, float blue=1.0f, float alpha=1.0f) |
|
void | getHSB (float &hue, float &saturation, float &brightness) const |
| Convert the current colour to Hue, Saturation and Brightness values.
|
|
void | getHSB (float *hue, float *saturation, float *brightness) const |
|
bool | operator!= (const ColourValue &rhs) const |
|
ColourValue | operator* (const ColourValue &rhs) const |
|
ColourValue | operator* (const float fScalar) const |
|
ColourValue & | operator*= (const float fScalar) |
|
ColourValue | operator+ (const ColourValue &rkVector) const |
|
ColourValue & | operator+= (const ColourValue &rkVector) |
|
ColourValue | operator- (const ColourValue &rkVector) const |
|
ColourValue & | operator-= (const ColourValue &rkVector) |
|
ColourValue | operator/ (const ColourValue &rhs) const |
|
ColourValue | operator/ (const float fScalar) const |
|
ColourValue & | operator/= (const float fScalar) |
|
bool | operator== (const ColourValue &rhs) const |
|
float & | operator[] (const size_t i) |
| Array accessor operator.
|
|
float | operator[] (const size_t i) const |
| Array accessor operator.
|
|
float * | ptr () |
| Pointer accessor for direct copying.
|
|
const float * | ptr () const |
| Pointer accessor for direct copying.
|
|
void | saturate (void) |
| Clamps colour value to the range [0, 1].
|
|
ColourValue | saturateCopy (void) const |
| As saturate, except that this colour value is unaffected and the saturated colour value is returned as a copy.
|
|
void | setHSB (float hue, float saturation, float brightness) |
| Set a colour value from Hue, Saturation and Brightness.
|
|
|
RGBA | getAsRGBA (void) const |
| value packed as PF_R8G8B8A8
|
|
ARGB | getAsARGB (void) const |
| value packed as PF_A8R8G8B8
|
|
BGRA | getAsBGRA (void) const |
| value packed as PF_B8G8R8A8
|
|
ABGR | getAsABGR (void) const |
| value packed as PF_A8B8G8R8
|
|
RGBA | getAsBYTE () const |
| value packed as PF_BYTE_RGBA
|
|
void | setAsRGBA (RGBA val) |
| Set value from PF_R8G8B8A8.
|
|
void | setAsARGB (ARGB val) |
| Set value from PF_A8R8G8B8.
|
|
void | setAsBGRA (BGRA val) |
| Set value from PF_B8G8R8A8.
|
|
void | setAsABGR (ABGR val) |
| Set value from PF_A8B8G8R8.
|
|
Class representing colour.
Colour is represented as 4 components, each of which is a floating-point value from 0.0 to 1.0.
- The 3 'normal' colour components are red, green and blue, a higher number indicating greater amounts of that component in the colour. The forth component is the 'alpha' value, which represents transparency. In this case, 0.0 is completely transparent and 1.0 is fully opaque.