|
| ColourValue (float red=1.0f, float green=1.0f, float blue=1.0f, float alpha=1.0f) |
|
ABGR | getAsABGR (void) const |
| Retrieves colours as ABGR.
|
|
ARGB | getAsARGB (void) const |
| Retrieves colour as ARGB.
|
|
BGRA | getAsBGRA (void) const |
| Retrieves colour as BGRA.
|
|
RGBA | getAsRGBA (void) const |
| Retrieves colour as RGBA.
|
|
void | getHSB (Real *hue, Real *saturation, Real *brightness) const |
| Convert the current colour to Hue, Saturation and Brightness values.
|
|
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 | setAsABGR (const ABGR val) |
| Sets colour as ABGR.
|
|
void | setAsARGB (const ARGB val) |
| Sets colour as ARGB.
|
|
void | setAsBGRA (const BGRA val) |
| Sets colour as BGRA.
|
|
void | setAsRGBA (const RGBA val) |
| Sets colour as RGBA.
|
|
void | setHSB (Real hue, Real saturation, Real brightness) |
| Set a colour value from Hue, Saturation and Brightness.
|
|
Class representing colour.
- 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.