From 6adc2a5654e55f4a0e817cd5731753cdc3bc5ff4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 7 Jun 2014 18:27:44 +0300 Subject: add some more OpenGL functions. --- src/graphicsmanager.cpp | 1 + src/render/mgl.cpp | 1 + src/render/mgl.h | 1 + src/render/mgltypes.h | 1 + 4 files changed, 4 insertions(+) diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index e81f54cbd..870f52bb9 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -812,6 +812,7 @@ void GraphicsManager::initOpenGLFunctions() assignFunction(glFramebufferRenderbuffer, "glFramebufferRenderbuffer"); assignFunction(glDeleteFramebuffers, "glDeleteFramebuffers"); assignFunction(glDeleteRenderbuffers, "glDeleteRenderbuffers"); + assignFunction(glCheckFramebufferStatus, "glCheckFramebufferStatus"); } else if (supportExtension("GL_EXT_framebuffer_object")) { // old frame buffer extension diff --git a/src/render/mgl.cpp b/src/render/mgl.cpp index 21e2dd274..47d087325 100644 --- a/src/render/mgl.cpp +++ b/src/render/mgl.cpp @@ -82,6 +82,7 @@ defName(glUniform1f); defName(glUniform2f); defName(glUniform3f); defName(glUniform4f); +defName(glCheckFramebufferStatus); #ifdef WIN32 defName(wglGetExtensionsString); diff --git a/src/render/mgl.h b/src/render/mgl.h index 2213458bb..02122f88c 100644 --- a/src/render/mgl.h +++ b/src/render/mgl.h @@ -85,6 +85,7 @@ defNameE(glUniform1f); defNameE(glUniform2f); defNameE(glUniform3f); defNameE(glUniform4f); +defNameE(glCheckFramebufferStatus); #ifdef WIN32 defNameE(wglGetExtensionsString); diff --git a/src/render/mgltypes.h b/src/render/mgltypes.h index 8e5cbe40d..65fd8a978 100644 --- a/src/render/mgltypes.h +++ b/src/render/mgltypes.h @@ -120,6 +120,7 @@ typedef void (APIENTRY *glUniform3f_t) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2); typedef void (APIENTRY *glUniform4f_t) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); +typedef GLenum (APIENTRY *glCheckFramebufferStatus_t) (GLenum target); // callback typedef void (APIENTRY *GLDEBUGPROC_t) (GLenum source, GLenum type, GLuint id, -- cgit v1.2.3-70-g09d2