diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-14 01:09:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-14 01:57:57 +0300 |
commit | c5fd70049a0ebdc14e49af3e5215521085a44b46 (patch) | |
tree | 6654ed70f48e954d39926ff3a14a26d588479cab /src/graphicsmanager.h | |
parent | d589fe649959239c268b1affddee8a453f96e969 (diff) | |
download | manaverse-c5fd70049a0ebdc14e49af3e5215521085a44b46.tar.gz manaverse-c5fd70049a0ebdc14e49af3e5215521085a44b46.tar.bz2 manaverse-c5fd70049a0ebdc14e49af3e5215521085a44b46.tar.xz manaverse-c5fd70049a0ebdc14e49af3e5215521085a44b46.zip |
Fow OpenGL >= 3.0 check extensions in modern way.
Diffstat (limited to 'src/graphicsmanager.h')
-rw-r--r-- | src/graphicsmanager.h | 6 |
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; |