Contains methods to query and disable OpenGL extensions. More...
#include <Inventor/devices/SoGLExtension.h>
Static Public Member Functions | |
static SbBool | isAvailable (const char *extension) |
static SbBool | isAvailable (const SbString &extension) |
static void | disableExtension (const SbString &extension) |
SoGLExtension is based on GLEW (the OpenGL Extension Wrangler library). The OpenGL Extension Wrangler Library (GLEW) is a cross-platform, open-source extension loading library. GLEW provides efficient run-time mechanisms for determining which OpenGL extensions are supported on the current platform. Once an extension is known to be present, the function linked to that extension can be called directly.
SoGLContext* context = new SoGLContext( true ); context->bind(); SbBool ok = SoGLExtension::isAvailable( "GL_ARB_vertex_program" ); context->unbind(); context->unref(); // See ref counting rules for SoGLContext
The following list categorizes the extensions that can be queried with isAvailable():
3DFX
AMD
APPLE
ARB
ATI
EXT
GRemedy
HP
IBM
INGR
Intel
KTX
MESA
NVidia
OES
OML
PGI
Rend
S3
SGI
Sun
Win
WGL
GLX
static void SoGLExtension::disableExtension | ( | const SbString & | extension | ) | [static] |
Disable a specific extension in software.
The given extension will be disabled for any subsequent calls to isAvailable and for any existing contexts.
A list of extensions can be disabled using the environment variable OIV_DISABLED_GL_EXTENSION_LIST ( see SoPreferences ).
Returns true if the extension is available.
static SbBool SoGLExtension::isAvailable | ( | const char * | extension | ) | [static] |
Returns true if the extension is available.