tokens, functions for GL_MESA_program_debug
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 21 Jul 2003 04:30:25 +0000 (04:30 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 21 Jul 2003 04:30:25 +0000 (04:30 +0000)
include/GL/gl.h

index 260b59ac386f972967731c9379eecc02e3e79dec..4bcd43e41c49fdb854a92100bd92d12a35c687c8 100644 (file)
@@ -2673,6 +2673,33 @@ typedef void (APIENTRY * PFNGLGETQUERYOBJECTUIVARBPROC)(GLuint id, GLenum pname,
 #endif /* GL_ARB_occlusion_query */
 
 
+#ifndef GL_MESA_program_debug
+#define GL_MESA_program_debug 1
+
+#define GL_FRAGMENT_PROGRAM_POSITION_MESA       0x9900
+#define GL_FRAGMENT_PROGRAM_CALLBACK_MESA       0x9901
+#define GL_FRAGMENT_PROGRAM_CALLBACK_FUNC_MESA  0x9902
+#define GL_FRAGMENT_PROGRAM_CALLBACK_DATA_MESA  0x9903
+#define GL_VERTEX_PROGRAM_POSITION_MESA         0x9904
+#define GL_VERTEX_PROGRAM_CALLBACK_MESA         0x9905
+#define GL_VERTEX_PROGRAM_CALLBACK_FUNC_MESA    0x9906
+#define GL_VERTEX_PROGRAM_CALLBACK_DATA_MESA    0x9907
+
+typedef void (*GLprogramcallbackMESA)(GLenum target, GLvoid *data);
+
+extern void
+glProgramCallbackMESA(GLenum target, GLprogramcallbackMESA callback,
+                      GLvoid *data);
+
+extern void
+glGetProgramRegisterfvMESA(GLenum target,
+                           GLsizei len, const GLubyte *registerName,
+                           GLfloat *v);
+
+#endif /* GL_MESA_program_debug */
+
+
+
 /**********************************************************************
  * Begin system-specific stuff
  */