#include <acolor.h>
Public Member Functions |
|
AColor () | |
AColor (float R, float G, float B, float A=1.0f) | |
AColor (double R, double G, double B, double A=1.0) | |
AColor (int R, int G, int B, int A=0) | |
AColor (const AColor &c) | |
AColor (const Color &c, float alph=1.0f) | |
AColor (DWORD rgb, float alph=1.0f) | |
AColor (Point4 p) | |
AColor (float af[4]) | |
AColor (const BMM_Color_24 &c) | |
AColor (const BMM_Color_32 &c) | |
AColor (const BMM_Color_48 &c) | |
AColor (const BMM_Color_64 &c) | |
AColor (const BMM_Color_fl &c) | |
void | Black () |
void | White () |
void | ClampMax () |
void | ClampMin () |
void | ClampMinMax () |
float & | operator[] (int i) |
const float & | operator[] (int i) const |
operator float * () | |
operator Color () | |
operator BMM_Color_24 () | |
operator BMM_Color_32 () | |
operator BMM_Color_48 () | |
operator BMM_Color_64 () | |
operator BMM_Color_fl () | |
DWORD | toRGB () |
operator Point3 () | |
operator Point4 () | |
AColor | operator- () const |
AColor | operator+ () const |
AColor & | operator-= (const AColor &) |
AColor & | operator+= (const AColor &) |
AColor & | operator*= (float) |
AColor & | operator/= (float) |
AColor & | operator*= (const AColor &) |
int | operator== (const AColor &p) const |
int | operator!= (const AColor &p) const |
AColor | operator- (const AColor &) const |
AColor | operator+ (const AColor &) const |
AColor | operator/ (const AColor &) const |
AColor | operator* (const AColor &) const |
AColor | operator^ (const AColor &) const |
Public Attributes |
|
float | r |
These values are in the range 0.0 to 1.0.
|
|
float | g |
float | b |
float | a |
AColor | ( | ) | [inline] |
{}
AColor | ( | float | R, |
float | G, | ||
float | B, | ||
float | A = 1.0f |
||
) | [inline] |
AColor | ( | double | R, |
double | G, | ||
double | B, | ||
double | A = 1.0 |
||
) | [inline] |
AColor | ( | int | R, |
int | G, | ||
int | B, | ||
int | A = 0 |
||
) | [inline] |
AColor | ( | DWORD | rgb, |
float | alph = 1.0f |
||
) | [explicit] |
AColor | ( | float | af[4] | ) | [inline] |
AColor | ( | const BMM_Color_24 & | c | ) | [inline] |
AColor | ( | const BMM_Color_32 & | c | ) | [inline] |
AColor | ( | const BMM_Color_48 & | c | ) | [inline] |
AColor | ( | const BMM_Color_64 & | c | ) | [inline] |
AColor | ( | const BMM_Color_fl & | c | ) | [inline] |
void Black | ( | ) | [inline] |
void White | ( | ) | [inline] |
void ClampMax | ( | ) |
void ClampMin | ( | ) |
void ClampMinMax | ( | ) |
float& operator[] | ( | int | i | ) | [inline] |
{ return (&r)[i]; }
const float& operator[] | ( | int | i | ) | const [inline] |
{ return (&r)[i]; }
operator float * | ( | ) | [inline] |
operator BMM_Color_24 | ( | ) | [inline] |
operator BMM_Color_32 | ( | ) | [inline] |
operator BMM_Color_48 | ( | ) | [inline] |
operator BMM_Color_64 | ( | ) | [inline] |
operator BMM_Color_fl | ( | ) | [inline] |
DWORD toRGB | ( | ) | [inline] |
operator Point3 | ( | ) | [inline] |
AColor operator- | ( | ) | const [inline] |
AColor operator+ | ( | ) | const [inline] |
AColor & operator*= | ( | float | f | ) | [inline] |
AColor & operator/= | ( | float | f | ) | [inline] |
int operator== | ( | const AColor & | p | ) | const [inline] |
int operator!= | ( | const AColor & | p | ) | const [inline] |
float r |
These values are in the range 0.0 to 1.0.
float g |
float b |
float a |