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
00037 class SFML_API sfColor
00038 {
00039 public :
00040
00045 sfColor();
00046
00053 explicit sfColor(sfUint32 ColorRGBA);
00054
00064 sfColor(sfUint8 R, sfUint8 G, sfUint8 B, sfUint8 A = 255);
00065
00072 sfUint32 ToRGBA() const;
00073
00082 bool operator ==(const sfColor& Other) const;
00083
00092 bool operator !=(const sfColor& Other) const;
00093
00095
00097 static const sfColor Black;
00098 static const sfColor White;
00099 static const sfColor Red;
00100 static const sfColor Green;
00101 static const sfColor Blue;
00102 static const sfColor Yellow;
00103 static const sfColor Magenta;
00104 static const sfColor Cyan;
00105
00107
00109 sfUint8 r;
00110 sfUint8 g;
00111 sfUint8 b;
00112 sfUint8 a;
00113 };
00114
00115
00116 #endif // SFML_COLOR_HPP