summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-05-11 21:55:28 +0300
committerAndrei Karas <akaras@inbox.ru>2012-05-18 01:37:32 +0300
commitf35d6cd35d92ad16a55bf49f61f19153949497c0 (patch)
treeb962c63304767edb38433ae9f1956377c8638f90 /src/graphicsmanager.h
parenta736a01786b9ad6df5dba9955fcac96300c537a2 (diff)
downloadplus-f35d6cd35d92ad16a55bf49f61f19153949497c0.tar.gz
plus-f35d6cd35d92ad16a55bf49f61f19153949497c0.tar.bz2
plus-f35d6cd35d92ad16a55bf49f61f19153949497c0.tar.xz
plus-f35d6cd35d92ad16a55bf49f61f19153949497c0.zip
Improve auto detection for best graphics mode.
Diffstat (limited to 'src/graphicsmanager.h')
-rw-r--r--src/graphicsmanager.h10
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;