#include <OgreColourValue.h>
Public Methods | |
ColourValue (Real red=1.0f, Real green=1.0f, Real blue=1.0f, Real alpha=1.0f) | |
bool | operator== (const ColourValue &rhs) const |
bool | operator!= (const ColourValue &rhs) const |
RGBA | getAsLongRGBA (void) const |
Retrieves colour as RGBA. | |
ARGB | getAsLongARGB (void) const |
Retrieves colour as ARGB. | |
ABGR | getAsLongABGR (void) const |
Retrieves colours as ABGR. | |
ColourValue | operator+ (const ColourValue &rkVector) const |
ColourValue | operator- (const ColourValue &rkVector) const |
ColourValue | operator * (Real fScalar) const |
ColourValue | operator * (const ColourValue &rhs) const |
ColourValue | operator/ (const ColourValue &rhs) const |
ColourValue | operator/ (Real fScalar) const |
ColourValue & | operator+= (const ColourValue &rkVector) |
ColourValue & | operator-= (const ColourValue &rkVector) |
ColourValue & | operator *= (Real fScalar) |
ColourValue & | operator/= (Real fScalar) |
Static Public Attributes | |
ColourValue | Black = ColourValue(0.0,0.0,0.0) |
ColourValue | White = ColourValue(1.0,1.0,1.0) |
ColourValue | Red = ColourValue(1.0,0.0,0.0) |
ColourValue | Green = ColourValue(0.0,1.0,0.0) |
ColourValue | Blue = ColourValue(0.0,0.0,1.0) |
Friends | |
ColourValue | operator * (Real fScalar, const ColourValue &rkVector) |
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.
Definition at line 47 of file OgreColourValue.h.
|
Definition at line 56 of file OgreColourValue.h. References Ogre::green, and Ogre::Real. |
|
Retrieves colours as ABGR.
Definition at line 92 of file OgreColourValue.cpp. References a, Ogre::ABGR, b, g, and r. Referenced by Ogre::GLRenderSystem::convertColourValue(). |
|
Retrieves colour as ARGB.
Definition at line 64 of file OgreColourValue.cpp. Referenced by Ogre::D3D9RenderSystem::_setFog(), Ogre::D3DRenderSystem::_setFog(), Ogre::D3D9RenderSystem::clearFrameBuffer(), Ogre::D3DRenderSystem::clearFrameBuffer(), Ogre::D3D9RenderSystem::convertColourValue(), and Ogre::D3DRenderSystem::convertColourValue(). |
|
Retrieves colour as RGBA.
Definition at line 37 of file OgreColourValue.cpp. Referenced by Ogre::GLRenderSystem::convertColourValue(). |
|
Definition at line 120 of file OgreColourValue.h. |
|
Definition at line 108 of file OgreColourValue.h. References a, b, g, r, and Ogre::Real. |
|
Definition at line 192 of file OgreColourValue.h. References Ogre::Real. |
|
Definition at line 128 of file OgreColourValue.cpp. |
|
Definition at line 84 of file OgreColourValue.h. |
|
Definition at line 172 of file OgreColourValue.h. |
|
Definition at line 96 of file OgreColourValue.h. |
|
Definition at line 182 of file OgreColourValue.h. |
|
Definition at line 144 of file OgreColourValue.h. References a, b, g, r, and Ogre::Real. |
|
Definition at line 132 of file OgreColourValue.h. |
|
Definition at line 201 of file OgreColourValue.h. References Ogre::Real. |
|
Definition at line 120 of file OgreColourValue.cpp. |
|
Definition at line 159 of file OgreColourValue.h. |
|
|
|
Definition at line 30 of file OgreColourValue.cpp. |
|
Definition at line 34 of file OgreColourValue.cpp. |
|
|
Definition at line 33 of file OgreColourValue.cpp. |
|
|
Definition at line 32 of file OgreColourValue.cpp. |
|
Definition at line 69 of file OgreColourValue.h. Referenced by Ogre::GpuProgramParameters::setConstant(). |
|
Definition at line 31 of file OgreColourValue.cpp. |
Copyright © 2002-2003 by The OGRE Team
Last modified Sun Nov 28 19:50:50 2004