Defines a color. More...
#include <Types.hh>
Public Member Functions | |
| Color (float _r=0.0f, float _g=0.0f, float _b=0.0f, float _a=1.0f) | |
| Constructor. More... | |
| bool | operator== (const Color &_clr) const |
| Equality operator. More... | |
Public Attributes | |
| float | a |
| Alpha value. More... | |
| float | b |
| Blue value. More... | |
| float | g |
| Green value. More... | |
| float | r |
| Red value. More... | |
Defines a color.
|
inline |
Constructor.
| [in] | _r | Red value (range 0 to 1) |
| [in] | _g | Green value (range 0 to 1 |
| [in] | _b | Blue value (range 0 to 1 |
| [in] | _a | Alpha value (0=transparent, 1=opaque) |
|
inline |
Equality operator.
| [in] | _clr | The color to check for equality |
References a, b, sdf::v10::equal(), g, and r.
| float sdf::v10::Color::a |
Alpha value.
Referenced by operator==().
| float sdf::v10::Color::b |
Blue value.
Referenced by operator==().
| float sdf::v10::Color::g |
Green value.
Referenced by operator==().
| float sdf::v10::Color::r |
Red value.
Referenced by operator==().