summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-14 01:09:49 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-14 01:57:57 +0300
commitc5fd70049a0ebdc14e49af3e5215521085a44b46 (patch)
tree6654ed70f48e954d39926ff3a14a26d588479cab /src/graphicsmanager.h
parentd589fe649959239c268b1affddee8a453f96e969 (diff)
downloadplus-c5fd70049a0ebdc14e49af3e5215521085a44b46.tar.gz
plus-c5fd70049a0ebdc14e49af3e5215521085a44b46.tar.bz2
plus-c5fd70049a0ebdc14e49af3e5215521085a44b46.tar.xz
plus-c5fd70049a0ebdc14e49af3e5215521085a44b46.zip
Fow OpenGL >= 3.0 check extensions in modern way.
Diffstat (limited to 'src/graphicsmanager.h')
-rw-r--r--src/graphicsmanager.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/graphicsmanager.h b/src/graphicsmanager.h
index c7e8ead6a..6a41da035 100644
--- a/src/graphicsmanager.h
+++ b/src/graphicsmanager.h
@@ -41,8 +41,6 @@ class GraphicsManager
bool detectGraphics();
- void updateExtensions(const char *extensions);
-
bool supportExtension(const std::string &ext);
void updateTextureFormat();
@@ -63,11 +61,15 @@ class GraphicsManager
void initOpenGLFunctions();
+ void updateExtensions();
+
Graphics *createGraphics();
private:
std::set<std::string> mExtensions;
+ std::string mVersionString;
+
int mMinor;
int mMajor;