00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00024
00025 #ifndef SFML_COLOR_HPP
00026 #define SFML_COLOR_HPP
00027
00029
00031 #include <SFML/Config.hpp>
00032
00033
00034 namespace sf
00035 {
00040 class SFML_API Color
00041 {
00042 public :
00043
00048 Color();
00049
00059 Color(Uint8 R, Uint8 G, Uint8 B, Uint8 A = 255);
00060
00069 Color& operator +=(const Color& Other);
00070
00079 Color& operator *=(const Color& Other);
00080
00089 bool operator ==(const Color& Other) const;
00090
00099 bool operator !=(const Color& Other) const;
00100
00102
00104 static const Color Black;
00105 static const Color White;
00106 static const Color Red;
00107 static const Color Green;
00108 static const Color Blue;
00109 static const Color Yellow;
00110 static const Color Magenta;
00111 static const Color Cyan;
00112
00114
00116 Uint8 r;
00117 Uint8 g;
00118 Uint8 b;
00119 Uint8 a;
00120 };
00121
00131 SFML_API Color operator +(const Color& Color1, const Color& Color2);
00132
00142 SFML_API Color operator *(const Color& Color1, const Color& Color2);
00143
00144 }
00145
00146
00147 #endif // SFML_COLOR_HPP