summaryrefslogtreecommitdiff
path: root/src/mgl.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-14 12:43:25 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-14 12:55:01 +0300
commitfe7a1342dc71a412a177a69b022ac1d1cc1fbdc6 (patch)
treebb19ed9d1e21b4b8517d588bca0a18c1c0fcc359 /src/mgl.h
parentc5fd70049a0ebdc14e49af3e5215521085a44b46 (diff)
downloadmv-fe7a1342dc71a412a177a69b022ac1d1cc1fbdc6.tar.gz
mv-fe7a1342dc71a412a177a69b022ac1d1cc1fbdc6.tar.bz2
mv-fe7a1342dc71a412a177a69b022ac1d1cc1fbdc6.tar.xz
mv-fe7a1342dc71a412a177a69b022ac1d1cc1fbdc6.zip
Add support for GLX and wGL extensions.
Diffstat (limited to 'src/mgl.h')
-rw-r--r--src/mgl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mgl.h b/src/mgl.h
index 8e7002d82..3c611e9ac 100644
--- a/src/mgl.h
+++ b/src/mgl.h
@@ -24,6 +24,7 @@
#define GL_GLEXT_PROTOTYPES 1
#include <SDL_opengl.h>
+#include <SDL_syswm.h>
#include <GL/glext.h>
#define GL_NUM_EXTENSIONS 0x821D
@@ -61,4 +62,10 @@ defNameE(glDeleteFramebuffers);
defNameE(glDeleteRenderbuffers);
defNameE(glGetStringi);
+#ifdef WIN32
+typedef const char* (APIENTRY * wglGetExtensionsString_t) (HDC hdc);
+
+defNameE(wglGetExtensionsString);
+#endif
+
#endif