Mercurial > sdl-ios-xcode
comparison EXCLUDE/GLTSF/include/Video_Mode.hpp @ 4730:6032ada8b9e5
Adding GLTSF (somewhat based on SFML, no actual TSF code yet)
author | dewyatt |
---|---|
date | Tue, 25 May 2010 18:53:09 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
4464:fa77a6429698 | 4730:6032ada8b9e5 |
---|---|
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 |