#include <GraphicContext.h>
Public Member Functions | |
Color32 () | |
Constructor. Default color is opaque black. | |
Color32 (Uint8 r, Uint8 g, Uint8 b, Uint8 a=DrawableSurface::ALPHA_OPAQUE) | |
Constructor from components. | |
Color32 (Uint32 v) | |
Constructor from unsigned int. | |
bool | operator< (const Color32 &o) const |
Return true if id < o.id. | |
Public Attributes | |
Uint32 | id |
access as one 4 bytes unsigned int | |
struct { | |
Uint8 r | |
Uint8 g | |
Uint8 b | |
Uint8 a | |
components | |
} | channel |
access as 4 one byte components |