Simulant  21.12-1275
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
smlt::Color Struct Reference

Public Member Functions

 Color (const FloatArray &arr)
 
 Color (const float *buf, std::size_t count)
 
 Color (float r, float g, float b, float a)
 
 operator FloatArray () const
 
Color operator* (const float rhs) const
 
Color operator*= (const float rhs)
 
Color operator- (const Color &rhs) const
 
Color operator-= (const Color &rhs)
 
Color operator+ (const Color &rhs) const
 
Color operator+= (const Color &rhs)
 
bool operator== (const Color &rhs) const
 
bool operator!= (const Color &rhs) const
 
bool operator< (const Color &rhs) const
 
Color lerp (const Color &end, float t) const
 
std::string to_hex_string () const
 
uint32_t to_rgba_8888 () const
 
uint32_t to_argb_8888 () const
 
uint32_t to_abgr_8888 () const
 
uint16_t to_rgba_4444 () const
 
uint16_t to_abgr_4444 () const
 
uint16_t to_argb_4444 () const
 

Static Public Member Functions

static Color from_bytes (uint8_t r, uint8_t g, uint8_t b, uint8_t a)
 
static Color from_hex_string (const std::string &hex_string)
 
static Color black ()
 
static Color gray ()
 
static Color white ()
 
static Color red ()
 
static Color green ()
 
static Color blue ()
 
static Color yellow ()
 
static Color purple ()
 
static Color turquoise ()
 
static Color none ()
 

Public Attributes

float r
 
float g
 
float b
 
float a
 

The documentation for this struct was generated from the following files: