![]() |
OGRE 2.1
Object-Oriented Graphics Rendering Engine
|
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.
|
inlineexplicit |
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 |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool Ogre::ColourValue::operator== | ( | const ColourValue & | rhs | ) | const |
|
inline |
Pointer accessor for direct copying.
|
inline |
As saturate, except that this colour value is unaffected and the saturated colour value is returned as a copy.
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 |
|
friend |
Function for writing to a stream.
float Ogre::ColourValue::a |
float Ogre::ColourValue::b |
|
static |
|
static |
float Ogre::ColourValue::g |
|
static |
float Ogre::ColourValue::r |
|
static |
|
static |
|
static |