Class representing colour. More...
#include <OgreColourValue.h>
Public Attributes | |
float | a |
float | b |
float | g |
float | r |
Static Public Attributes | |
static const ColourValue | Black |
static const ColourValue | Blue |
static const ColourValue | Green |
static const ColourValue | Red |
static const ColourValue | White |
static const ColourValue | ZERO |
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. | |
Class representing colour.
Definition at line 57 of file OgreColourValue.h.
|
explicit |
Definition at line 67 of file OgreColourValue.h.
Convert the current colour to Hue, Saturation and Brightness values.
hue | Output hue value, scaled to the [0,1] range as opposed to the 0-360 |
saturation | Output saturation level, [0,1] |
brightness | Output brightness level, [0,1] |
bool Ogre::ColourValue::operator!= | ( | const ColourValue & | rhs | ) | const |
ColourValue Ogre::ColourValue::operator* | ( | const ColourValue & | rhs | ) | const |
Definition at line 208 of file OgreColourValue.h.
ColourValue Ogre::ColourValue::operator* | ( | const float | fScalar | ) | const |
Definition at line 196 of file OgreColourValue.h.
ColourValue & Ogre::ColourValue::operator*= | ( | const float | fScalar | ) |
Definition at line 280 of file OgreColourValue.h.
ColourValue Ogre::ColourValue::operator+ | ( | const ColourValue & | rkVector | ) | const |
Definition at line 172 of file OgreColourValue.h.
ColourValue & Ogre::ColourValue::operator+= | ( | const ColourValue & | rkVector | ) |
Definition at line 260 of file OgreColourValue.h.
ColourValue Ogre::ColourValue::operator- | ( | const ColourValue & | rkVector | ) | const |
Definition at line 184 of file OgreColourValue.h.
ColourValue & Ogre::ColourValue::operator-= | ( | const ColourValue & | rkVector | ) |
Definition at line 270 of file OgreColourValue.h.
ColourValue Ogre::ColourValue::operator/ | ( | const ColourValue & | rhs | ) | const |
Definition at line 220 of file OgreColourValue.h.
ColourValue Ogre::ColourValue::operator/ | ( | const float | fScalar | ) | const |
Definition at line 232 of file OgreColourValue.h.
ColourValue & Ogre::ColourValue::operator/= | ( | const float | fScalar | ) |
Definition at line 289 of file OgreColourValue.h.
bool Ogre::ColourValue::operator== | ( | const ColourValue & | rhs | ) | const |
Array accessor operator.
Definition at line 152 of file OgreColourValue.h.
Array accessor operator.
Definition at line 144 of file OgreColourValue.h.
float * Ogre::ColourValue::ptr | ( | ) |
Pointer accessor for direct copying.
Definition at line 160 of file OgreColourValue.h.
Pointer accessor for direct copying.
Definition at line 165 of file OgreColourValue.h.
Clamps colour value to the range [0, 1].
Definition at line 111 of file OgreColourValue.h.
ColourValue Ogre::ColourValue::saturateCopy | ( | void | ) | const |
As saturate, except that this colour value is unaffected and the saturated colour value is returned as a copy.
Definition at line 136 of file OgreColourValue.h.
Set a colour value from Hue, Saturation and Brightness.
hue | Hue value, scaled to the [0,1] range as opposed to the 0-360 |
saturation | Saturation level, [0,1] |
brightness | Brightness level, [0,1] |
|
friend |
Definition at line 247 of file OgreColourValue.h.
|
friend |
Function for writing to a stream.
Definition at line 321 of file OgreColourValue.h.
float Ogre::ColourValue::a |
Definition at line 76 of file OgreColourValue.h.
Referenced by Ogre::AnimableValue::setAsBaseValue().
float Ogre::ColourValue::b |
Definition at line 76 of file OgreColourValue.h.
Referenced by Ogre::AnimableValue::setAsBaseValue().
|
static |
Definition at line 61 of file OgreColourValue.h.
|
static |
Definition at line 65 of file OgreColourValue.h.
float Ogre::ColourValue::g |
Definition at line 76 of file OgreColourValue.h.
Referenced by Ogre::AnimableValue::setAsBaseValue().
|
static |
Definition at line 64 of file OgreColourValue.h.
float Ogre::ColourValue::r |
Definition at line 76 of file OgreColourValue.h.
Referenced by Ogre::AnimableValue::setAsBaseValue().
|
static |
Definition at line 63 of file OgreColourValue.h.
|
static |
Definition at line 62 of file OgreColourValue.h.
|
static |
Definition at line 60 of file OgreColourValue.h.
Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.