diff pytouhou/lib/opengl.pxd @ 579:b8df946d394d

Add grouping for OpenGL calls, making traces much more readable.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sun, 17 Aug 2014 16:16:58 +0200
parents 1be60813f7cb
children 47cf4e3d159d
line wrap: on
line diff
--- a/pytouhou/lib/opengl.pxd
+++ b/pytouhou/lib/opengl.pxd
@@ -88,6 +88,10 @@ cdef extern from 'epoxy/gl.h' nogil:
         GL_DEPTH_ATTACHMENT
         GL_FRAMEBUFFER_COMPLETE
 
+        # Debug
+
+        GL_DEBUG_SOURCE_APPLICATION
+
     void glVertexPointer(GLint size, GLenum type_, GLsizei stride, GLvoid *pointer)
     void glTexCoordPointer(GLint size, GLenum type_, GLsizei stride, GLvoid *pointer)
     void glColorPointer(GLint size, GLenum type_, GLsizei stride, GLvoid *pointer)
@@ -160,3 +164,8 @@ cdef extern from 'epoxy/gl.h' nogil:
     void glGenVertexArrays(GLsizei n, GLuint *arrays)
     void glDeleteVertexArrays(GLsizei n, const GLuint *arrays)
     void glBindVertexArray(GLuint array)
+
+    # Debug
+
+    void glPushDebugGroup(GLenum source, GLuint id_, GLsizei length, const char *message)
+    void glPopDebugGroup()