#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. More... | |
ARGB | getAsLongARGB (void) const |
Retrieves colour as ARGB. More... | |
ABGR | getAsLongABGR (void) const |
Retrieves colours as ABGR. More... | |
Public Attributes | |
Real | r |
Real | g |
Real | b |
Real | a |
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.
|
|
|
Retrieves colours as ABGR.
|
|
Retrieves colour as ARGB.
|
|
Retrieves colour as RGBA.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Copyright © 2002 by The OGRE Team