rag
graphic 2d engine
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Color Class Reference

Public Member Functions

 Color (float r=1, float g=1, float b=1, float a=1)
 
 Color (std::string color)
 
unsigned int toRGBA () const
 
unsigned int toABGR () const
 
Coloroperator*= (const Color &rhs)
 
Coloroperator*= (float value)
 
Coloroperator/= (const Color &rhs)
 
Coloroperator/= (float value)
 
Coloroperator+= (const Color &rhs)
 
const Color operator* (const Color &rhs) const
 
const Color operator* (float value) const
 
const Color operator/ (const Color &rhs) const
 
const Color operator/ (float value) const
 
const Color operator+ (const Color &rhs) const
 
bool operator== (const Color &rhs)
 
bool operator!= (const Color &rhs)
 
std::string toString ()
 

Static Public Member Functions

static unsigned int createRGBA (int r, int g, int b, int a)
 
static unsigned int createABGR (int r, int g, int b, int a)
 

Public Attributes

float r
 
float g
 
float b
 
float a
 

Static Public Attributes

static const Color black
 
static const Color white
 

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