#include <Color.h>
Public Member Functions | |
Color (const unsigned char uR=0, const unsigned char uG=0, const unsigned char uB=0, const unsigned char uA=255) | |
Color (const int iR, const int iG, const int iB, const int iA=255) | |
Color (const float fR, const float fG, const float fB, const float fA=1.0f) | |
Color (const unsigned char *pData) | |
Color (const float *pData) | |
~Color () | |
void | Set (const unsigned char uR, const unsigned char uG, const unsigned char uB, const unsigned char uA=255) |
const unsigned char * | Get () const |
void | SetRed (const unsigned char uR) |
const unsigned char | GetRed () const |
void | SetGreen (const unsigned char uG) |
const unsigned char | GetGreen () const |
void | SetBlue (const unsigned char uB) |
const unsigned char | GetBlue () const |
void | SetAlpha (const unsigned char uA) |
const unsigned char | GetAlpha () const |
void | SetNormalized (const float fR, const float fG, const float fB, const float fA=1.0f) |
void | SetNormalizedRed (const float fR) |
void | SetNormalizedGreen (const float fG) |
void | SetNormalizedBlue (const float fB) |
void | SetNormalizedAlpha (const float fA) |
const float | GetNormalizedRed () const |
const float | GetNormalizedGreen () const |
const float | GetNormalizedBlue () const |
const float | GetNormalizedAlpha () const |
void | SetHSV (const float fHue, const float fSaturation, const float fValue) |
const Color & | operator*= (const float fOther) |
const Color & | operator/= (const float fOther) |
const Color & | operator+= (const Color &colOther) |
const Color & | operator-= (const Color &colOther) |
const Color | operator* (const float fOther) const |
const Color | operator/ (const float fOther) const |
const Color | operator+ (const Color &colOther) const |
const Color | operator- (const Color &colOther) const |
const bool | operator== (const Color &colOther) const |
const bool | operator!= (const Color &colOther) const |
const bool | choose () |
Static Public Member Functions | |
static const bool | chooseColor (Color &colColor) |
Private Attributes | |
unsigned char | m_uData [4] |
Color::Color | ( | const unsigned char | uR = 0 , |
|
const unsigned char | uG = 0 , |
|||
const unsigned char | uB = 0 , |
|||
const unsigned char | uA = 255 | |||
) | [inline] |
Color::Color | ( | const int | iR, | |
const int | iG, | |||
const int | iB, | |||
const int | iA = 255 | |||
) | [inline] |
Color::Color | ( | const float | fR, | |
const float | fG, | |||
const float | fB, | |||
const float | fA = 1.0f | |||
) | [inline] |
Color::Color | ( | const unsigned char * | pData | ) | [inline] |
Color::Color | ( | const float * | pData | ) | [inline] |
Color::~Color | ( | ) | [inline] |
const bool Color::choose | ( | ) | [inline] |
static const bool Color::chooseColor | ( | Color & | colColor | ) | [inline, static] |
const unsigned char* Color::Get | ( | ) | const [inline] |
const unsigned char Color::GetAlpha | ( | ) | const [inline] |
const unsigned char Color::GetBlue | ( | ) | const [inline] |
const unsigned char Color::GetGreen | ( | ) | const [inline] |
const float Color::GetNormalizedAlpha | ( | ) | const [inline] |
const float Color::GetNormalizedBlue | ( | ) | const [inline] |
const float Color::GetNormalizedGreen | ( | ) | const [inline] |
const float Color::GetNormalizedRed | ( | ) | const [inline] |
const unsigned char Color::GetRed | ( | ) | const [inline] |
const bool Color::operator!= | ( | const Color & | colOther | ) | const [inline] |
const Color Color::operator* | ( | const float | fOther | ) | const [inline] |
const Color& Color::operator*= | ( | const float | fOther | ) | [inline] |
const Color Color::operator/ | ( | const float | fOther | ) | const [inline] |
const Color& Color::operator/= | ( | const float | fOther | ) | [inline] |
const bool Color::operator== | ( | const Color & | colOther | ) | const [inline] |
void Color::Set | ( | const unsigned char | uR, | |
const unsigned char | uG, | |||
const unsigned char | uB, | |||
const unsigned char | uA = 255 | |||
) | [inline] |
void Color::SetAlpha | ( | const unsigned char | uA | ) | [inline] |
void Color::SetBlue | ( | const unsigned char | uB | ) | [inline] |
void Color::SetGreen | ( | const unsigned char | uG | ) | [inline] |
void Color::SetHSV | ( | const float | fHue, | |
const float | fSaturation, | |||
const float | fValue | |||
) | [inline] |
void Color::SetNormalized | ( | const float | fR, | |
const float | fG, | |||
const float | fB, | |||
const float | fA = 1.0f | |||
) | [inline] |
void Color::SetNormalizedAlpha | ( | const float | fA | ) | [inline] |
void Color::SetNormalizedBlue | ( | const float | fB | ) | [inline] |
void Color::SetNormalizedGreen | ( | const float | fG | ) | [inline] |
void Color::SetNormalizedRed | ( | const float | fR | ) | [inline] |
void Color::SetRed | ( | const unsigned char | uR | ) | [inline] |
unsigned char Color::m_uData[4] [private] |