From 84ffacb978457a4ac57e88bf5500cb1140981638 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 11 Sep 1999 12:04:54 +0000 Subject: [PATCH] added 1.2 function to gluGetProcAddressEXT() --- src/glu/mesa/glu.c | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/src/glu/mesa/glu.c b/src/glu/mesa/glu.c index 9e0fb460309..5ce66151d9e 100644 --- a/src/glu/mesa/glu.c +++ b/src/glu/mesa/glu.c @@ -1,4 +1,4 @@ -/* $Id: glu.c,v 1.4 1999/09/11 11:36:26 brianp Exp $ */ +/* $Id: glu.c,v 1.5 1999/09/11 12:04:54 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -23,6 +23,9 @@ /* * $Log: glu.c,v $ + * Revision 1.5 1999/09/11 12:04:54 brianp + * added 1.2 function to gluGetProcAddressEXT() + * * Revision 1.4 1999/09/11 11:36:26 brianp * added GLU_EXT_get_proc_address * @@ -329,7 +332,7 @@ const GLubyte* GLAPIENTRY gluErrorString( GLenum errorCode ) const GLubyte* GLAPIENTRY gluGetString( GLenum name ) { static char *extensions = "GL_EXT_abgr GLU_EXT_get_proc_address"; - static char *version = "1.1 Mesa 3.1"; + static char *version = "1.2 Mesa 3.1"; switch (name) { case GLU_EXTENSIONS: @@ -349,17 +352,30 @@ GLfunction GLAPIENTRY gluGetProcAddressEXT( const GLubyte *procName ) { struct proc { const char *name; - void *address; + GLfunction address; }; static struct proc procTable[] = { - { "gluGetProcAddressEXT", (void *) gluGetProcAddressEXT }, /* myself! */ + { "gluGetProcAddressEXT", (GLfunction) gluGetProcAddressEXT }, /* me! */ + + /* new 1.1 functions */ + { "gluGetString", (GLfunction) gluGetString }, + + /* new 1.2 functions */ + { "gluTessBeginPolygon", (GLfunction) gluTessBeginPolygon }, + { "gluTessBeginContour", (GLfunction) gluTessBeginContour }, + { "gluTessEndContour", (GLfunction) gluTessEndContour }, + { "gluTessEndPolygon", (GLfunction) gluTessEndPolygon }, + { "gluGetTessProperty", (GLfunction) gluGetTessProperty }, + + /* new 1.3 functions */ + { NULL, NULL } }; GLuint i; for (i = 0; procTable[i].address; i++) { if (strcmp((const char *) procName, procTable[i].name) == 0) - return (GLfunction) procTable[i].address; + return procTable[i].address; } return NULL; -- 2.30.2