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/mgl.h | |
parent | d589fe649959239c268b1affddee8a453f96e969 (diff) | |
download | manaplus-c5fd70049a0ebdc14e49af3e5215521085a44b46.tar.gz manaplus-c5fd70049a0ebdc14e49af3e5215521085a44b46.tar.bz2 manaplus-c5fd70049a0ebdc14e49af3e5215521085a44b46.tar.xz manaplus-c5fd70049a0ebdc14e49af3e5215521085a44b46.zip |
Fow OpenGL >= 3.0 check extensions in modern way.
Diffstat (limited to 'src/mgl.h')
-rw-r--r-- | src/mgl.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -26,6 +26,7 @@ #include <SDL_opengl.h> #include <GL/glext.h> +#define GL_NUM_EXTENSIONS 0x821D #define GL_DEPTH_ATTACHMENT 0x8D00 #define GL_COLOR_ATTACHMENT0 0x8CE0 #define GL_FRAMEBUFFER 0x8D40 @@ -47,6 +48,7 @@ typedef void (APIENTRY *glFramebufferRenderbuffer_t)(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); typedef void (APIENTRY *glDeleteFramebuffers_t) (GLsizei, const GLuint *); typedef void (APIENTRY *glDeleteRenderbuffers_t) (GLsizei, const GLuint *); +typedef const GLubyte *(APIENTRY *glGetStringi_t) (GLenum, GLuint); defNameE(glGenRenderbuffers); defNameE(glBindRenderbuffer); @@ -57,5 +59,6 @@ defNameE(glFramebufferTexture2D); defNameE(glFramebufferRenderbuffer); defNameE(glDeleteFramebuffers); defNameE(glDeleteRenderbuffers); +defNameE(glGetStringi); #endif |