Public Types |
| typedef ValueTypeT | ValueType |
Public Methods |
|
| | Color4 (void) |
| | Constructor.
|
| | Color4 (const Color4 &source) |
| | Copy Constructor.
|
| | Color4 (ValueType red, ValueType green, ValueType blue, ValueType alpha) |
| | Constructor.
|
|
| | ~Color4 (void) |
| | Destructor.
|
|
| void | clear (void) |
| void | setValuesRGBA (ValueType red, ValueType green, ValueType blue, ValueType alpha) |
| void | setValuesHSV (Real32 h, Real32 s, Real32 v) |
| void | setRandom (void) |
| void | setRGBA (UInt32 rgbPack) |
| | method to set the rgb values (ABGGRR)
|
| void | setValue (const char *szString) |
| void | setValue (char *szString) |
|
| UInt32 | getRGBA (void) const |
| | method to get a packed rgb value (ABGGRR)
|
| void | getValuesRGBA (ValueType &red, ValueType &green, ValueType &blue, ValueType &alpha) |
| | method to get a packed rgb value (ABGGRR)
|
| void | getValuesHSV (Real32 &h, Real32 &s, Real32 &v) |
| | method to get a packed rgb value (ABGGRR)
|
| ValueType | red (void) const |
| | method to get a packed rgb value (ABGGRR)
|
| ValueType | green (void) const |
| | method to get a packed rgb value (ABGGRR)
|
| ValueType | blue (void) const |
| | method to get a packed rgb value (ABGGRR)
|
| ValueType | alpha (void) const |
| | method to get a packed rgb value (ABGGRR)
|
| ValueType * | getValuesRGBA (void) |
| | method to get a packed rgb value (ABGGRR)
|
| const ValueType * | getValuesRGBA (void) const |
| | method to get a packed rgb value (ABGGRR)
|
|
| Color4 | operator * (const ValueType val) |
| ValueType & | operator[] (UInt32 uiIndex) |
| const ValueType & | operator[] (UInt32 uiIndex) const |
| Color4 & | operator= (const Color4 &source) |
| | assignment
|
| bool | equals (const Color4 &other, ValueType tolerance) const |
| | equal within tolerance
|
| bool | operator== (const Color4 &other) const |
| | equal
|
| bool | operator!= (const Color4 &other) const |
| | unequal
|
Static Public Attributes |
| const Color4 | Null |
Protected Attributes |
| ValueType | _rgba [4] |