summaryrefslogtreecommitdiffstats
path: root/src/glut/glx/glut_ext.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2002-08-17 00:12:12 +0000
committerBrian Paul <[email protected]>2002-08-17 00:12:12 +0000
commit46a035f76d3b7a2355f7655c9dd7e519d4238cdc (patch)
tree79178916830b7f890b66fa5f78305c8305a28a41 /src/glut/glx/glut_ext.c
parent10730663a128c35c0241a79d885665e6272014d7 (diff)
added glutGetProcAddress() and GLUT_FPS env var option
Diffstat (limited to 'src/glut/glx/glut_ext.c')
-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 */