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_VIDEOMODE_HPP
00026 #define SFML_VIDEOMODE_HPP
00027
00029
00031 #include <SFML/Config.hpp>
00032 #include <vector>
00033
00034
00035 namespace sf
00036 {
00041 class SFML_API VideoMode
00042 {
00043 public :
00044
00051 VideoMode();
00052
00061 VideoMode(unsigned int width, unsigned int height, unsigned int bitsPerPixel = 32);
00062
00069 static VideoMode GetDesktopMode();
00070
00085 static const std::vector<VideoMode>& GetFullscreenModes();
00086
00097 bool IsValid() const;
00098
00100
00102 unsigned int Width;
00103 unsigned int Height;
00104 unsigned int BitsPerPixel;
00105 };
00106
00117 SFML_API bool operator ==(const VideoMode& left, const VideoMode& right);
00118
00129 SFML_API bool operator !=(const VideoMode& left, const VideoMode& right);
00130
00141 SFML_API bool operator <(const VideoMode& left, const VideoMode& right);
00142
00153 SFML_API bool operator >(const VideoMode& left, const VideoMode& right);
00154
00165 SFML_API bool operator <=(const VideoMode& left, const VideoMode& right);
00166
00177 SFML_API bool operator >=(const VideoMode& left, const VideoMode& right);
00178
00179 }
00180
00181
00182 #endif // SFML_VIDEOMODE_HPP
00183
00184