![]() |
Simulant
21.12-1292
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
|
Public Member Functions | |
PackedColor4444 (const Color &c) | |
PackedColor4444 & | operator= (const PackedColor4444 &)=default |
PackedColor4444 & | operator= (const Color &rhs) |
bool | operator== (const PackedColor4444 &rhs) const |
bool | operator== (const Color &rhs) const |
bool | operator!= (const Color &rhs) const |
operator Color () const | |
void | set_alpha (NormalizedFloat a) |
uint8_t | r8 () const |
uint8_t | g8 () const |
uint8_t | b8 () const |
uint8_t | a8 () const |
float | rf () const |
float | gf () const |
float | bf () const |
float | af () const |
float smlt::PackedColor4444::af | ( | ) | const |
Returns the alpha channel as a value between 0.0f and 1.0f
float smlt::PackedColor4444::bf | ( | ) | const |
Returns the blue channel as a value between 0.0f and 1.0f
float smlt::PackedColor4444::gf | ( | ) | const |
Returns the green channel as a value between 0.0f and 1.0f
float smlt::PackedColor4444::rf | ( | ) | const |
Returns the red channel as a value between 0.0f and 1.0f