summaryrefslogtreecommitdiff
path: root/src/render/mgl.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-04-07 21:57:33 +0300
committerAndrei Karas <akaras@inbox.ru>2014-04-07 21:57:33 +0300
commitcf24722d84c7e4fd1d32365d720c291a48b9f9c8 (patch)
tree05f2bd60e8199d5fec00507f4fef95c51dab0873 /src/render/mgl.h
parente786bcdc61657e4b2e2cae4bf6f44bb70a14587a (diff)
downloadmv-cf24722d84c7e4fd1d32365d720c291a48b9f9c8.tar.gz
mv-cf24722d84c7e4fd1d32365d720c291a48b9f9c8.tar.bz2
mv-cf24722d84c7e4fd1d32365d720c291a48b9f9c8.tar.xz
mv-cf24722d84c7e4fd1d32365d720c291a48b9f9c8.zip
Add support for OpenGL extension GL_EXT_debug_label.
Diffstat (limited to 'src/render/mgl.h')
-rw-r--r--src/render/mgl.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/render/mgl.h b/src/render/mgl.h
index e2e710029..8fc98f8fe 100644
--- a/src/render/mgl.h
+++ b/src/render/mgl.h
@@ -74,6 +74,15 @@
#define GL_DEBUG_SEVERITY_LOW 0x9148
#endif
+#ifndef GL_EXT_debug_label
+#define GL_PROGRAM_PIPELINE_OBJECT_EXT 0x8A4F
+#define GL_PROGRAM_OBJECT_EXT 0x8B40
+#define GL_SHADER_OBJECT_EXT 0x8B48
+#define GL_BUFFER_OBJECT_EXT 0x9151
+#define GL_QUERY_OBJECT_EXT 0x9153
+#define GL_VERTEX_ARRAY_OBJECT_EXT 0x9154
+#endif
+
#define defNameE(name) extern name##_t m##name
typedef void (APIENTRY *glGenRenderbuffers_t)(GLsizei, GLuint *);
@@ -100,6 +109,10 @@ typedef void (APIENTRY *glSamplerParameteri_t)
typedef void (APIENTRY *glDebugMessageControl_t) (GLenum source, GLenum type,
GLenum severity, GLsizei count, const GLuint* ids, GLboolean enabled);
typedef void (APIENTRY *glFrameTerminator_t) (void);
+typedef void (APIENTRY *glLabelObject_t) (GLenum type, GLuint object,
+ GLsizei length, const GLchar *label);
+typedef void (APIENTRY *glGetObjectLabel_t) (GLenum type, GLuint object,
+ GLsizei bufSize, GLsizei *length, GLchar *label);
// callback
typedef void (APIENTRY *GLDEBUGPROC_t) (GLenum source, GLenum type, GLuint id,
@@ -125,6 +138,8 @@ defNameE(glSamplerParameteri);
defNameE(glDebugMessageControl);
defNameE(glDebugMessageCallback);
defNameE(glFrameTerminator);
+defNameE(glLabelObject);
+defNameE(glGetObjectLabel);
#ifdef WIN32
typedef const char* (APIENTRY * wglGetExtensionsString_t) (HDC hdc);