options menu
ingame resolution change ( game restart needed )
everything not really poolished yet!
This commit is contained in:
Titus Tscharntke
2010-04-01 00:13:28 +00:00
parent 2eae390d34
commit 5ecc84099a
7 changed files with 393 additions and 96 deletions

View File

@@ -14,6 +14,8 @@
#include <string>
#include <vector>
#include <stdexcept>
#include <list>
#include <SDL.h>
@@ -23,6 +25,7 @@
using std::string;
using std::vector;
using std::list;
using std::exception;
using Shared::Platform::int64;
@@ -76,6 +79,20 @@ private:
int64 queryCounter(int multiplier) const;
};
// =====================================================
// class ModeInfo
// =====================================================
class ModeInfo {
public:
int width;
int height;
int depth;
ModeInfo(int width, int height, int depth);
string getString() const;
};
// =====================================================
// class PlatformExceptionHandler
// =====================================================
@@ -101,6 +118,7 @@ void createDirectoryPaths(string Path);
string extractDirectoryPathFromFile(string filename);
string extractExtension(const string& filename);
void getFullscreenVideoModes(list<ModeInfo> *modeinfos);
void getFullscreenVideoInfo(int &colorBits,int &screenWidth,int &screenHeight);
bool changeVideoMode(int resH, int resW, int colorBits, int refreshFrequency);
void restoreVideoMode(bool exitingApp=false);