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 bool operator ==(const Color& Other) const;
00069
00078 bool operator !=(const Color& Other) const;
00079
00081
00083 static const Color Black;
00084 static const Color White;
00085 static const Color Red;
00086 static const Color Green;
00087 static const Color Blue;
00088 static const Color Yellow;
00089 static const Color Magenta;
00090 static const Color Cyan;
00091
00093
00095 Uint8 r;
00096 Uint8 g;
00097 Uint8 b;
00098 Uint8 a;
00099 };
00100
00110 SFML_API Color operator +(const Color& Color1, const Color& Color2);
00111
00121 SFML_API Color operator *(const Color& Color1, const Color& Color2);
00122
00123 }
00124
00125
00126 #endif // SFML_COLOR_HPP