From 389858ee7b5207d356c9211386024af8ff9797f5 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 21 Jul 2003 04:30:25 +0000 Subject: tokens, functions for GL_MESA_program_debug --- include/GL/gl.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'include') diff --git a/include/GL/gl.h b/include/GL/gl.h index 260b59ac386..4bcd43e41c4 100644 --- a/include/GL/gl.h +++ b/include/GL/gl.h @@ -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 */ -- cgit v1.2.3