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 {
00039 class SFML_API Color
00040 {
00041 public :
00042
00047 Color();
00048
00058 Color(Uint8 R, Uint8 G, Uint8 B, Uint8 A = 255);
00059
00068 Color& operator +=(const Color& Other);
00069
00078 Color& operator *=(const Color& Other);
00079
00088 bool operator ==(const Color& Other) const;
00089
00098 bool operator !=(const Color& Other) const;
00099
00101
00103 static const Color Black;
00104 static const Color White;
00105 static const Color Red;
00106 static const Color Green;
00107 static const Color Blue;
00108 static const Color Yellow;
00109 static const Color Magenta;
00110 static const Color Cyan;
00111
00113
00115 Uint8 r;
00116 Uint8 g;
00117 Uint8 b;
00118 Uint8 a;
00119 };
00120
00130 SFML_API Color operator +(const Color& Color1, const Color& Color2);
00131
00141 SFML_API Color operator *(const Color& Color1, const Color& Color2);
00142
00143 }
00144
00145
00146 #endif // SFML_COLOR_HPP