4741
|
1 #ifndef VIDEO_MODE_HPP
|
|
2 #define VIDEO_MODE_HPP
|
|
3
|
|
4 #include <cstddef>
|
|
5
|
|
6 class Video_Mode
|
|
7 {
|
|
8 public:
|
|
9 Video_Mode();
|
|
10 Video_Mode(unsigned int The_Width, unsigned int The_Height, unsigned int The_Bits_Per_Pixel);
|
|
11
|
|
12 static Video_Mode Get_Desktop_Mode();
|
|
13
|
|
14 static std::size_t Get_Mode_Count();
|
|
15 static Video_Mode Get_Mode(std::size_t Index);
|
|
16
|
|
17 bool Is_Valid() const;
|
|
18
|
|
19 bool operator==(const Video_Mode &Mode) const;
|
|
20 bool operator!=(const Video_Mode &Mode) const;
|
|
21
|
|
22 unsigned int Width;
|
|
23 unsigned int Height;
|
|
24 unsigned int Bits_Per_Pixel;
|
|
25
|
|
26 private:
|
|
27 static void Initialize_Modes();
|
|
28 };
|
|
29
|
|
30 #endif
|