|
VR-Engage
2.2
|
This class provides functionality for working with colors in RGBA format. It includes methods for creating common colors and converting between different color representations.
#include <color.h>
Public Types | |
| enum | Fill { FILL_SOLID , FILL_TRANSPARENT , FILL_WIREFRAME , FILL_NONE } |
Public Member Functions | |
| DtColor () | |
| DtColor (float rr, float gg, float bb, float aa) | |
| ~DtColor () | |
| unsigned int | toUInt () const |
| bool | operator== (const DtColor &other) const |
Static Public Member Functions | |
| static DtColor | white () |
| static DtColor | black () |
| static DtColor | blue () |
| static DtColor | green () |
| static DtColor | red () |
| static DtColor | orange () |
| static DtColor | yellow () |
Public Attributes | |
| float | r |
| float | g |
| float | b |
| float | a |
Fill mode enumeration for rendering.
| Enumerator | |
|---|---|
| FILL_SOLID | Solid fill mode. |
| FILL_TRANSPARENT | Transparent fill mode. |
| FILL_WIREFRAME | Wireframe fill mode. |
| FILL_NONE | No fill mode. |
|
inline |
|
inline |
|
inline |
Destructor.
| unsigned int makVre::DtColor::toUInt | ( | ) | const |
Converts the color to an unsigned integer representation.
The color is packed as 0xRRGGBBAA with 8 bits per channel
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
| bool makVre::DtColor::operator== | ( | const DtColor & | other | ) | const |
Equality comparison operator.
| other | The color to compare with |
References DtColor().
| float makVre::DtColor::a |