diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-11 23:11:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-12 01:13:04 +0300 |
commit | facd5fbaa7724ecb56f30fbbefcab9a426d4966b (patch) | |
tree | 32896d0d1276417a97f506f3eac856d10e17b186 /src/mgl.h | |
parent | 8127238e3e06ff9d7952dde9f931c41c0947ba9c (diff) | |
download | manaplus-facd5fbaa7724ecb56f30fbbefcab9a426d4966b.tar.gz manaplus-facd5fbaa7724ecb56f30fbbefcab9a426d4966b.tar.bz2 manaplus-facd5fbaa7724ecb56f30fbbefcab9a426d4966b.tar.xz manaplus-facd5fbaa7724ecb56f30fbbefcab9a426d4966b.zip |
Fix FBO under windows.
Diffstat (limited to 'src/mgl.h')
-rw-r--r-- | src/mgl.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -26,6 +26,11 @@ #include <SDL_opengl.h> #include <GL/glext.h> +#define GL_DEPTH_ATTACHMENT 0x8D00 +#define GL_COLOR_ATTACHMENT0 0x8CE0 +#define GL_FRAMEBUFFER 0x8D40 +#define GL_RENDERBUFFER 0x8D41 + #define defNameE(name) extern name##_t m##name typedef void (APIENTRY *glGenRenderbuffers_t)(GLsizei, GLuint *); @@ -40,6 +45,8 @@ typedef void (APIENTRY *glFramebufferTexture2D_t)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); 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 *); defNameE(glGenRenderbuffers); defNameE(glBindRenderbuffer); @@ -48,5 +55,7 @@ defNameE(glGenFramebuffers); defNameE(glBindFramebuffer); defNameE(glFramebufferTexture2D); defNameE(glFramebufferRenderbuffer); +defNameE(glDeleteFramebuffers); +defNameE(glDeleteRenderbuffers); #endif |