#include <ut_Color.h>
Public Types | |
| typedef FloatColor | SelfType |
Public Member Functions | |
| FloatColor () | |
| FloatColor (const nw::math::VEC4 &vec) | |
| FloatColor (const SelfType &color) | |
| FloatColor (const SelfType &color, f32 alpha) | |
| FloatColor (f32 red, f32 green, f32 blue, f32 alpha) | |
| FloatColor & | operator= (const FloatColor &other)=default |
| ~FloatColor () | |
| SelfType & | operator= (const nw::math::VEC4 &vec) |
| operator f32 * () | |
| operator const f32 * () const | |
| const SelfType | operator+ (const SelfType &right) const |
| const SelfType | operator- (const SelfType &right) const |
| const SelfType | operator* (const SelfType &right) const |
| const SelfType | operator/ (const SelfType &right) const |
| SelfType & | operator+= (const SelfType &rhs) |
| SelfType & | operator-= (const SelfType &rhs) |
| SelfType & | operator*= (const SelfType &rhs) |
| SelfType & | operator/= (const SelfType &rhs) |
| SelfType & | operator+= (f32 right) |
| SelfType & | operator-= (f32 right) |
| SelfType & | operator*= (f32 right) |
| SelfType & | operator/= (f32 right) |
| bool | operator== (const SelfType &rhs) const |
| bool | operator!= (const SelfType &rhs) const |
| void | Set (f32 red, f32 green, f32 blue, f32 alpha=ALPHA_OPACITY) |
| void | SetColor (f32 red, f32 green, f32 blue) |
| void | SetAlpha (f32 alpha) |
| void | Set (const SelfType &color) |
| bool | IsTransparent () |
| f32 * | ToArray () |
| const f32 * | ToArray () const |
Public Attributes | |
| f32 | r |
| f32 | g |
| f32 | b |
| f32 | a |
Static Public Attributes | |
| static const int | ELEMENT_MIN = 0 |
| static const int | ELEMENT_MAX = 1 |
| static const int | ALPHA_MIN = ELEMENT_MIN |
| static const int | ALPHA_MAX = ELEMENT_MAX |
| static const int | ALPHA_OPACITY = ALPHA_MAX |
| static const int | ALPHA_TRANSPARENT = ALPHA_MIN |
Protected Member Functions | |
| nw::math::VEC4 & | ToVEC4 () |
| const nw::math::VEC4 & | ToVEC4 () const |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inlineprotected |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| f32 nw::ut::FloatColor::r |
| f32 nw::ut::FloatColor::g |
| f32 nw::ut::FloatColor::b |
| f32 nw::ut::FloatColor::a |