public class SoGLExtension extends Inventor
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.
Here is an example of checking if a GL extension is present.
Note that the isAvailable()
method will normally succeed even if no context is currently bound. In that case it creates its own temporary context automatically, but a warning message is posted when using a debug build of Open Inventor.
SoGLContext glContext = new SoGLContext( true ); glContext.bind(); boolean ok = SoGLExtension.isAvailable( "GL_ARB_vertex_program" ); glContext.unbind();
The SoGLExtension
header file must be included before any OpenGL header files.
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
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Modifier and Type | Method and Description |
---|---|
static void |
disableExtension(java.lang.String extension)
Disable a specific extension in software.
|
static boolean |
isAvailable(java.lang.String extension)
Returns true if the extension is available.
|
void |
setValue(SoGLExtension copyFrom) |
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public void setValue(SoGLExtension copyFrom)
public static void disableExtension(java.lang.String extension)
A list of extensions can be disabled using the environment variable OIV_DISABLED_GL_EXTENSION_LIST ( see SoPreferences
).
public static boolean isAvailable(java.lang.String extension)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com