summaryrefslogtreecommitdiff
path: root/src/mgl.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-11 23:11:07 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-12 01:13:04 +0300
commitfacd5fbaa7724ecb56f30fbbefcab9a426d4966b (patch)
tree32896d0d1276417a97f506f3eac856d10e17b186 /src/mgl.h
parent8127238e3e06ff9d7952dde9f931c41c0947ba9c (diff)
downloadplus-facd5fbaa7724ecb56f30fbbefcab9a426d4966b.tar.gz
plus-facd5fbaa7724ecb56f30fbbefcab9a426d4966b.tar.bz2
plus-facd5fbaa7724ecb56f30fbbefcab9a426d4966b.tar.xz
plus-facd5fbaa7724ecb56f30fbbefcab9a426d4966b.zip
Fix FBO under windows.
Diffstat (limited to 'src/mgl.h')
-rw-r--r--src/mgl.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mgl.h b/src/mgl.h
index 3721c6a9f..ae2f8583c 100644
--- a/src/mgl.h
+++ b/src/mgl.h
@@ -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