#include <OgreColourValue.h>
Collaboration diagram for Ogre::ColourValue:
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. | |
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) |
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, Ogre::Real, and Ogre::red. |
|
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::_beginFrame(), Ogre::D3DRenderSystem::_beginFrame(), Ogre::D3D9RenderSystem::_setFog(), Ogre::D3DRenderSystem::_setFog(), 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 128 of file OgreColourValue.cpp. |
|
Definition at line 120 of file OgreColourValue.cpp. |
|
|
|
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 Wed Jan 21 00:17:03 2004