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
committerJosé Fonseca <jfonseca@vmware.com>2011-07-11 20:03:32 +0100
commit619080a158767cb247382dfa8f3f4b42a6b18df6 (patch)
tree84af1c7d08a6400e3a15936dc86c25caba48f17d /src/glut/beos/glutGet.cpp
parent29ae9383fcd6ba6b2d2c8c5064a03d5396b46459 (diff)
downloadglut-619080a158767cb247382dfa8f3f4b42a6b18df6.tar.gz
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 45d07f7..04a8479 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;
-}