![]() |
OGRE 14.3
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 |
Class representing colour.
Colour is represented as 4 components, each of which is a floating-point value from 0.0 to 1.0.
|
inlineexplicit |
|
inline |
|
inline |
value packed as PF_R8G8B8A8
value packed as PF_A8R8G8B8
value packed as PF_B8G8R8A8
value packed as PF_A8B8G8R8
Referenced by Ogre::VertexElement::convertColourValue().
|
inline |
value packed as PF_BYTE_RGBA
Referenced by Ogre::RenderSystem::convertColourValue(), Ogre::Root::convertColourValue(), and Ogre::Billboard::setColour().
Set value from PF_R8G8B8A8.
Set value from PF_A8R8G8B8.
Set value from PF_B8G8R8A8.
Set value from PF_A8B8G8R8.
|
inline |
As saturate, except that this colour value is unaffected and the saturated colour value is returned as a copy.
|
inline |
Pointer accessor for direct copying.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
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] |
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] |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
float Ogre::ColourValue::r |
Referenced by Ogre::PixelUtil::packColour(), Ogre::PixelUtil::unpackColour(), and Ogre::PixelUtil::unpackColour().
float Ogre::ColourValue::g |
Referenced by Ogre::PixelUtil::packColour(), Ogre::PixelUtil::unpackColour(), and Ogre::PixelUtil::unpackColour().
float Ogre::ColourValue::b |
Referenced by Ogre::PixelUtil::packColour(), Ogre::PixelUtil::unpackColour(), and Ogre::PixelUtil::unpackColour().
float Ogre::ColourValue::a |
Referenced by Ogre::PixelUtil::packColour(), Ogre::PixelUtil::unpackColour(), and Ogre::PixelUtil::unpackColour().