summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2001-12-17 19:48:23 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2001-12-17 19:48:23 +0000
commit781f27575c9753ffd85bfd852c5e91f287b92cd9 (patch)
treeb606ad389b957d0ca59d39a0fcbd4c4c6a8f63eb
parent08e126fba6e840b627844aa889a1155040618219 (diff)
added prototype glutGetProcAddress() function
-rw-r--r--src/glut/glx/glut_ext.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/glut/glx/glut_ext.c b/src/glut/glx/glut_ext.c
index abcb17a911b..ceea4ca15ab 100644
--- a/src/glut/glx/glut_ext.c
+++ b/src/glut/glx/glut_ext.c
@@ -50,4 +50,19 @@ glutExtensionSupported(const char *extension)
return 0;
}
+
+/* XXX This isn't an official GLUT function, yet */
+void * APIENTRY
+glutGetProcAddress(const char *procName)
+{
+#if defined(_WIN32)
+ return (void *) wglGetProcAddress((LPCSTR) procName);
+#elif defined(GLX_ARB_get_proc_address)
+ return (void *) glXGetProcAddressARB((const GLubyte *) procName);
+#else
+ return NULL;
+#endif
+}
+
+
/* ENDCENTRY */