summaryrefslogtreecommitdiffstats
path: root/src/glu/mesa/glu.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>1999-09-11 11:34:21 +0000
committerBrian Paul <[email protected]>1999-09-11 11:34:21 +0000
commitf893f032faebd6c6f4be4f9de7c8181575bb247c (patch)
tree397c09b62a5e456c8129ad1b09dcd8070cef5eee /src/glu/mesa/glu.c
parent89a42b7e736bd9b0ab090906cab0cd047a6ec12e (diff)
added GLU_EXT_get_proc_address
Diffstat (limited to 'src/glu/mesa/glu.c')
-rw-r--r--src/glu/mesa/glu.c33
1 files changed, 31 insertions, 2 deletions
diff --git a/src/glu/mesa/glu.c b/src/glu/mesa/glu.c
index e9037b7614d..9e0fb460309 100644
--- a/src/glu/mesa/glu.c
+++ b/src/glu/mesa/glu.c
@@ -1,4 +1,4 @@
-/* $Id: glu.c,v 1.3 1999/09/10 04:32:10 gareth Exp $ */
+/* $Id: glu.c,v 1.4 1999/09/11 11:36:26 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -23,6 +23,9 @@
/*
* $Log: glu.c,v $
+ * Revision 1.4 1999/09/11 11:36:26 brianp
+ * added GLU_EXT_get_proc_address
+ *
* Revision 1.3 1999/09/10 04:32:10 gareth
* Fixed triangle output, recovery process termination.
*
@@ -325,7 +328,7 @@ const GLubyte* GLAPIENTRY gluErrorString( GLenum errorCode )
const GLubyte* GLAPIENTRY gluGetString( GLenum name )
{
- static char *extensions = "GL_EXT_abgr";
+ static char *extensions = "GL_EXT_abgr GLU_EXT_get_proc_address";
static char *version = "1.1 Mesa 3.1";
switch (name) {
@@ -338,3 +341,29 @@ const GLubyte* GLAPIENTRY gluGetString( GLenum name )
}
}
+
+
+#ifdef GLU_EXT_get_proc_address
+
+GLfunction GLAPIENTRY gluGetProcAddressEXT( const GLubyte *procName )
+{
+ struct proc {
+ const char *name;
+ void *address;
+ };
+ static struct proc procTable[] = {
+ { "gluGetProcAddressEXT", (void *) gluGetProcAddressEXT }, /* myself! */
+ { 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 NULL;
+}
+
+#endif
+