diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-05-11 21:55:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-05-18 01:37:32 +0300 |
commit | f35d6cd35d92ad16a55bf49f61f19153949497c0 (patch) | |
tree | b962c63304767edb38433ae9f1956377c8638f90 /src/graphicsmanager.h | |
parent | a736a01786b9ad6df5dba9955fcac96300c537a2 (diff) | |
download | manaverse-f35d6cd35d92ad16a55bf49f61f19153949497c0.tar.gz manaverse-f35d6cd35d92ad16a55bf49f61f19153949497c0.tar.bz2 manaverse-f35d6cd35d92ad16a55bf49f61f19153949497c0.tar.xz manaverse-f35d6cd35d92ad16a55bf49f61f19153949497c0.zip |
Improve auto detection for best graphics mode.
Diffstat (limited to 'src/graphicsmanager.h')
-rw-r--r-- | src/graphicsmanager.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/graphicsmanager.h b/src/graphicsmanager.h index cefbe81d2..9c892b80d 100644 --- a/src/graphicsmanager.h +++ b/src/graphicsmanager.h @@ -35,6 +35,8 @@ class GraphicsManager void initGraphics(bool noOpenGL); + bool detectGraphics(); + void updateExtensions(const char *extensions); bool supportExtension(const std::string &ext); @@ -43,10 +45,18 @@ class GraphicsManager void logString(const char *format, int num); + std::string getGLString(int num) const; + void setVideoMode(); + bool checkGLVersion(int major, int minor) const; + private: std::set<std::string> mExtensions; + + int mMinor; + + int mMajor; }; extern GraphicsManager graphicsManager; |