summaryrefslogtreecommitdiff
path: root/src/glut/beos/glutGet.cpp
diff options
context:
space:
mode:
authorPhilippe Houdoin <phoudoin@freedesktop.org>2004-08-16 08:46:38 +0000
committerPhilippe Houdoin <phoudoin@freedesktop.org>2004-08-16 08:46:38 +0000
commit479b3d074589b1582e85aec90e53b82154ebcc2d (patch)
tree2392d65aa78320e15f8f33b3337f78923d2d37c4 /src/glut/beos/glutGet.cpp
parent375047ba7218f56a72477507e5d02cfa85fe00e2 (diff)
Add glutGetProcAddress(). Not all GLUT version 5 APIs are supported yet, thought.
-> #define GLUT_API_VERSION 4.5 ? ;-)
Diffstat (limited to 'src/glut/beos/glutGet.cpp')
-rw-r--r--src/glut/beos/glutGet.cpp36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/glut/beos/glutGet.cpp b/src/glut/beos/glutGet.cpp
index 45d07f7e46..04a8479b98 100644
--- a/src/glut/beos/glutGet.cpp
+++ b/src/glut/beos/glutGet.cpp
@@ -209,39 +209,3 @@ int glutGetModifiers() {
return gState.modifierKeys;
}
-/***********************************************************
- * FUNCTION: glutExtensionSupported (9.5)
- *
- * DESCRIPTION: is an OpenGL extension supported (from glut_ext.c)
- ***********************************************************/
-int glutExtensionSupported(const char *extension) {
- static const GLubyte *extensions = NULL;
- const GLubyte *start;
- GLubyte *where, *terminator;
-
- /* Extension names should not have spaces. */
- where = (GLubyte *) strchr(extension, ' ');
- if (where || *extension == '\0')
- return 0;
-
- if (!extensions)
- extensions = glGetString(GL_EXTENSIONS);
- /* It takes a bit of care to be fool-proof about parsing the
- OpenGL extensions string. Don't be fooled by sub-strings,
-
- etc. */
- start = extensions;
- for (;;) {
- where = (GLubyte *) strstr((const char *) start, extension);
- if (!where)
- break;
- terminator = where + strlen(extension);
- if (where == start || *(where - 1) == ' ') {
- if (*terminator == ' ' || *terminator == '\0') {
- return 1;
- }
- }
- start = terminator;
- }
- return 0;
-}