diff options
author | Brian Paul <[email protected]> | 1999-12-15 12:52:31 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 1999-12-15 12:52:31 +0000 |
commit | 67661b04f2b31691ef8e5a557624654b25e6d553 (patch) | |
tree | e3e506b96d972525f7366d9168b720ec9345ba6b /src/mesa/glapi/glapi.c | |
parent | 945d18a5e2fb64d150c1a66faef63b3d1c77ede1 (diff) |
added many more extension entry points
Diffstat (limited to 'src/mesa/glapi/glapi.c')
-rw-r--r-- | src/mesa/glapi/glapi.c | 134 |
1 files changed, 43 insertions, 91 deletions
diff --git a/src/mesa/glapi/glapi.c b/src/mesa/glapi/glapi.c index 25f05e547c9..1a6b424e013 100644 --- a/src/mesa/glapi/glapi.c +++ b/src/mesa/glapi/glapi.c @@ -1,4 +1,4 @@ -/* $Id: glapi.c,v 1.11 1999/12/10 20:01:06 brianp Exp $ */ +/* $Id: glapi.c,v 1.12 1999/12/15 12:52:31 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -134,51 +134,6 @@ _glapi_get_version(void) } -/* - * Return list of the hard-coded extension entrypoints in the dispatch table. - */ -const char ** -_glapi_get_extensions(void) -{ - static const char *extensions[] = { -#ifdef _GLAPI_EXT_paletted_texture - "GL_EXT_paletted_texture", -#endif -#ifdef _GLAPI_EXT_compiled_vertex_array - "GL_EXT_compiled_vertex_array", -#endif -#ifdef _GLAPI_EXT_point_parameters - "GL_EXT_point_parameters", -#endif -#ifdef _GLAPI_EXT_polygon_offset - "GL_EXT_polygon_offset", -#endif -#ifdef _GLAPI_EXT_blend_minmax - "GL_EXT_blend_minmax", -#endif -#ifdef _GLAPI_EXT_blend_color - "GL_EXT_blend_color", -#endif -#ifdef _GLAPI_ARB_multitexture - "GL_ARB_multitexture", -#endif -#ifdef _GLAPI_INGR_blend_func_separate - "GL_INGR_blend_func_separate", -#endif -#ifdef _GLAPI_MESA_window_pos - "GL_MESA_window_pos", -#endif -#ifdef _GLAPI_MESA_resize_buffers - "GL_MESA_resize_buffers", -#endif - NULL - }; - - return extensions; -} - - - struct name_address_pair { const char *Name; GLvoid *Address; @@ -573,37 +528,7 @@ static struct name_address_pair static_functions[] = { #endif #endif -#ifdef _GLAPI_EXT_paletted_texture - { "glColorTableEXT", (GLvoid *) glColorTableEXT }, - { "glColorSubTableEXT", (GLvoid *) glColorSubTableEXT }, - { "glGetColorTableEXT", (GLvoid *) glGetColorTableEXT }, - { "glGetColorTableParameterfvEXT", (GLvoid *) glGetColorTableParameterfvEXT }, - { "glGetColorTableParameterivEXT", (GLvoid *) glGetColorTableParameterivEXT }, -#endif - -#ifdef _GLAPI_EXT_compiled_vertex_array - { "glLockArraysEXT", (GLvoid *) glLockArraysEXT }, - { "glUnlockArraysEXT", (GLvoid *) glUnlockArraysEXT }, -#endif - -#ifdef _GLAPI_EXT_point_parameters - { "glPointParameterfEXT", (GLvoid *) glPointParameterfEXT }, - { "glPointParameterfvEXT", (GLvoid *) glPointParameterfvEXT }, -#endif - -#ifdef _GLAPI_EXT_polygon_offset - { "glPolygonOffsetEXT", (GLvoid *) glPolygonOffsetEXT }, -#endif - -#ifdef _GLAPI_EXT_blend_minmax - { "glBlendEquationEXT", (GLvoid *) glBlendEquationEXT }, -#endif - -#ifdef _GLAPI_EXT_blend_color - { "glBlendColorEXT", (GLvoid *) glBlendColorEXT }, -#endif - -#ifdef _GLAPI_ARB_multitexture + /* GL_ARB_multitexture */ { "glActiveTextureARB", (GLvoid *) glActiveTextureARB }, { "glClientActiveTextureARB", (GLvoid *) glClientActiveTextureARB }, { "glMultiTexCoord1dARB", (GLvoid *) glMultiTexCoord1dARB }, @@ -638,28 +563,47 @@ static struct name_address_pair static_functions[] = { { "glMultiTexCoord4ivARB", (GLvoid *) glMultiTexCoord4ivARB }, { "glMultiTexCoord4sARB", (GLvoid *) glMultiTexCoord4sARB }, { "glMultiTexCoord4svARB", (GLvoid *) glMultiTexCoord4svARB }, -#endif -#ifdef _GLAPI_INGR_blend_func_separate + /* 2. GL_EXT_blend_color */ + { "glBlendColorEXT", (GLvoid *) glBlendColorEXT }, + + /* 3. GL_EXT_polygon_offset */ + { "glPolygonOffsetEXT", (GLvoid *) glPolygonOffsetEXT }, + + /* 54. GL_EXT_point_parameters */ + { "glPointParameterfEXT", (GLvoid *) glPointParameterfEXT }, + { "glPointParameterfvEXT", (GLvoid *) glPointParameterfvEXT }, + + /* 78. GL_EXT_paletted_texture */ + { "glColorTableEXT", (GLvoid *) glColorTableEXT }, + { "glColorSubTableEXT", (GLvoid *) glColorSubTableEXT }, + { "glGetColorTableEXT", (GLvoid *) glGetColorTableEXT }, + { "glGetColorTableParameterfvEXT", (GLvoid *) glGetColorTableParameterfvEXT }, + { "glGetColorTableParameterivEXT", (GLvoid *) glGetColorTableParameterivEXT }, + + /* 97. GL_EXT_compiled_vertex_array */ + { "glLockArraysEXT", (GLvoid *) glLockArraysEXT }, + { "glUnlockArraysEXT", (GLvoid *) glUnlockArraysEXT }, + + /* 37. GL_EXT_blend_minmax */ + { "glBlendEquationEXT", (GLvoid *) glBlendEquationEXT }, + + /* 173. GL_EXT/INGR_blend_func_separate */ { "glBlendFuncSeparateINGR", (GLvoid *) glBlendFuncSeparateINGR }, -#endif -#ifdef _GLAPI_MESA_window_pos + /* GL_MESA_window_pos */ { "glWindowPos4fMESA", (GLvoid *) glWindowPos4fMESA }, -#endif -#ifdef _GLAPI_MESA_resize_buffers + /* GL_MESA_resize_buffers */ { "glResizeBuffersMESA", (GLvoid *) glResizeBuffersMESA }, -#endif -#ifdef _GLAPI_ARB_transpose_matrix - { "glLoadTransposeMatrixdARB", (GLvoid *) glLoadTransposeMatrixdARB }, - { "glLoadTransposeMatrixfARB", (GLvoid *) glLoadTransposeMatrixfARB }, - { "glMultTransposeMatrixdARB", (GLvoid *) glMultTransposeMatrixdARB }, - { "glMultTransposeMatrixfARB", (GLvoid *) glMultTransposeMatrixfARB }, -#endif + /* GL_ARB_transpose_matrix */ + { "glLoadTransposeMatrixdARB", (GLvoid *) glLoadTransposeMatrixdARB }, + { "glLoadTransposeMatrixfARB", (GLvoid *) glLoadTransposeMatrixfARB }, + { "glMultTransposeMatrixdARB", (GLvoid *) glMultTransposeMatrixdARB }, + { "glMultTransposeMatrixfARB", (GLvoid *) glMultTransposeMatrixfARB }, - { NULL, NULL } /* end of list marker */ + { NULL, NULL } /* end of list marker */ }; @@ -815,6 +759,13 @@ _glapi_get_proc_address(const char *funcName) void _glapi_check_table(const struct _glapi_table *table) { + const GLuint entries = sizeof(struct _glapi_table) / sizeof(void *); + const void **tab = (const void **) table; + GLuint i; + for (i = 0; i < entries; i++) { + assert(tab[i]); + } +#if 000 assert(table->Accum); assert(table->AlphaFunc); assert(table->Begin); @@ -1275,6 +1226,7 @@ _glapi_check_table(const struct _glapi_table *table) assert(table->MultTransposeMatrixdARB); assert(table->MultTransposeMatrixfARB); #endif +#endif } |