42 Color(
unsigned char r,
unsigned char g,
unsigned char b,
unsigned char a = 0xFF)
43 :
R(r),
G(g),
B(b),
A(a) { }
47 :
R((unsigned char)(c>>16)),
G((unsigned char)(c>>8)),
48 B((unsigned char)c),
A((unsigned char)(c>>24)) { }
52 return R == b.
R &&
G == b.
G &&
B == b.
B &&
A == b.
A;
55 void GetRGBA(
float *
r,
float *g,
float *b,
float* a)
const
void GetRGBA(float *r, float *g, float *b, float *a) const
Color(unsigned char r, unsigned char g, unsigned char b, unsigned char a=0xFF)
bool operator==(const Color &b) const