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 <cstdlib>
00033
00034
00035 namespace sf
00036 {
00042 class SFML_API VideoMode
00043 {
00044 public :
00045
00050 VideoMode();
00051
00060 VideoMode(unsigned int ModeWidth, unsigned int ModeHeight, unsigned int ModeBpp = 32);
00061
00068 static VideoMode GetDesktopMode();
00069
00080 static VideoMode GetMode(std::size_t Index);
00081
00088 static std::size_t GetModesCount();
00089
00096 bool IsValid() const;
00097
00106 bool operator ==(const VideoMode& Other) const;
00107
00116 bool operator !=(const VideoMode& Other) const;
00117
00119
00121 unsigned int Width;
00122 unsigned int Height;
00123 unsigned int BitsPerPixel;
00124
00125 private :
00126
00130 static void InitializeModes();
00131 };
00132
00133 }
00134
00135
00136 #endif // SFML_VIDEOMODE_HPP