#include <OgreColourValue.h>
Public Member Functions | |
ColourValue (float red=1.0f, float green=1.0f, float blue=1.0f, float alpha=1.0f) | |
bool | operator== (const ColourValue &rhs) const |
bool | operator!= (const ColourValue &rhs) const |
RGBA | getAsRGBA (void) const |
Retrieves colour as RGBA. | |
ARGB | getAsARGB (void) const |
Retrieves colour as ARGB. | |
BGRA | getAsBGRA (void) const |
Retrieves colour as BGRA. | |
ABGR | getAsABGR (void) const |
Retrieves colours as ABGR. | |
void | setAsRGBA (const RGBA val) |
Sets colour as RGBA. | |
void | setAsARGB (const ARGB val) |
Sets colour as ARGB. | |
void | setAsBGRA (const BGRA val) |
Sets colour as BGRA. | |
void | setAsABGR (const ABGR val) |
Sets colour as ABGR. | |
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. | |
ColourValue | operator+ (const ColourValue &rkVector) const |
ColourValue | operator- (const ColourValue &rkVector) const |
ColourValue | operator * (const float fScalar) const |
ColourValue | operator * (const ColourValue &rhs) const |
ColourValue | operator/ (const ColourValue &rhs) const |
ColourValue | operator/ (const float fScalar) const |
ColourValue & | operator+= (const ColourValue &rkVector) |
ColourValue & | operator-= (const ColourValue &rkVector) |
ColourValue & | operator *= (const float fScalar) |
ColourValue & | operator/= (const float fScalar) |
void | setHSB (Real hue, Real saturation, Real brightness) |
Set a colour value from Hue, Saturation and Brightness. | |
Static Public Attributes | |
const ColourValue | ZERO |
const ColourValue | Black |
const ColourValue | White |
const ColourValue | Red |
const ColourValue | Green |
const ColourValue | Blue |
Friends | |
ColourValue | operator * (const float fScalar, const ColourValue &rkVector) |
_OgreExport friend std::ostream & | operator<< (std::ostream &o, const ColourValue &c) |
Function for writing to a stream. |
Definition at line 48 of file OgreColourValue.h.
|
Definition at line 58 of file OgreColourValue.h. |
|
Retrieves colours as ABGR.
|
|
Retrieves colour as ARGB.
|
|
Retrieves colour as BGRA.
|
|
Retrieves colour as RGBA.
|
|
Definition at line 176 of file OgreColourValue.h. |
|
Definition at line 164 of file OgreColourValue.h. |
|
Definition at line 248 of file OgreColourValue.h. |
|
|
|
Definition at line 140 of file OgreColourValue.h. |
|
Definition at line 228 of file OgreColourValue.h. |
|
Definition at line 152 of file OgreColourValue.h. |
|
Definition at line 238 of file OgreColourValue.h. |
|
Definition at line 200 of file OgreColourValue.h. |
|
Definition at line 188 of file OgreColourValue.h. |
|
Definition at line 257 of file OgreColourValue.h. |
|
|
|
Clamps colour value to the range [0, 1].
Definition at line 107 of file OgreColourValue.h. Referenced by saturateCopy(). |
|
As saturate, except that this colour value is unaffected and the saturated colour value is returned as a copy.
Definition at line 132 of file OgreColourValue.h. References saturate(). |
|
Sets colour as ABGR.
|
|
Sets colour as ARGB.
|
|
Sets colour as BGRA.
|
|
Sets colour as RGBA.
|
|
Set a colour value from Hue, Saturation and Brightness.
|
|
Definition at line 215 of file OgreColourValue.h. |
|
Function for writing to a stream.
Definition at line 282 of file OgreColourValue.h. |
|
Definition at line 69 of file OgreColourValue.h. Referenced by operator *(), operator+(), operator+=(), operator-(), operator-=(), operator/(), and Ogre::AnimableValue::setAsBaseValue(). |
|
Definition at line 69 of file OgreColourValue.h. Referenced by operator *(), operator+(), operator+=(), operator-(), operator-=(), operator/(), and Ogre::AnimableValue::setAsBaseValue(). |
|
Definition at line 52 of file OgreColourValue.h. |
|
Definition at line 56 of file OgreColourValue.h. |
|
Definition at line 69 of file OgreColourValue.h. Referenced by operator *(), operator+(), operator+=(), operator-(), operator-=(), operator/(), and Ogre::AnimableValue::setAsBaseValue(). |
|
Definition at line 55 of file OgreColourValue.h. |
|
Definition at line 69 of file OgreColourValue.h. Referenced by operator *(), operator+(), operator+=(), operator-(), operator-=(), operator/(), and Ogre::AnimableValue::setAsBaseValue(). |
|
Definition at line 54 of file OgreColourValue.h. |
|
Definition at line 71 of file OgreColourValue.h. |
|
Definition at line 53 of file OgreColourValue.h. |
|
Definition at line 51 of file OgreColourValue.h. |
Copyright © 2000-2005 by The OGRE Team
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Mar 12 14:38:23 2006