41 {
return mR == color.
r() &&
mG == color.
g() &&
mB == color.
b() &&
mA == color.
a();}
43 {
return !(
mR == color.
r() &&
mG == color.
g() &&
mB == color.
b() &&
mA == color.
a());}
49 void set(Uint8
r, Uint8
g, Uint8
b, Uint8
a=255);
56 Uint8
r()
const {
return mR;}
57 Uint8
g()
const {
return mG;}
58 Uint8
b()
const {
return mB;}
59 Uint8
a()
const {
return mA;}
75 #endif // SDLTK_COLOR_H Color()
Definition: color.cpp:25
Color operator*(float value) const
Definition: color.cpp:70
Color operator-(const Color &color) const
Definition: color.cpp:54
Uint8 g() const
Definition: color.h:57
Uint8 mB
Definition: color.h:69
void setAlpha(Uint8 a)
Definition: color.h:52
Uint8 a() const
Definition: color.h:59
bool operator==(const Color &color) const
Definition: color.h:40
void setG(Uint8 g)
Definition: color.h:62
void setB(Uint8 b)
Definition: color.h:63
void setA(Uint8 a)
Definition: color.h:64
Color(Uint8 r, Uint8 g, Uint8 b, Uint8 a=255)
Definition: color.h:35
Color operator+(const Color &color) const
Definition: color.cpp:38
bool operator!=(const Color &color) const
Definition: color.h:42
Uint8 mR
Definition: color.h:67
~Color() ROLAND_DEFAULT Color(const Color &c)
Definition: color.h:36
Uint8 r() const
Definition: color.h:56
void setBlack()
Definition: color.h:50
Uint8 mA
Definition: color.h:70
void clearAlpha()
Definition: color.h:53
Uint8 b() const
Definition: color.h:58
Uint8 mG
Definition: color.h:68
#define ROLAND_DEFAULT
Definition: compspec.h:46
void setR(Uint8 r)
Definition: color.h:61
RGBA Color Type.
Definition: color.h:30
bool hasAlpha()
Definition: color.h:54
the SDL based Stuff
Definition: audio.cpp:22
void setWhite()
Definition: color.h:51