public class SoGLExtension extends Inventor
SoGLExtensionis 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();
SoGLExtension header file must be included before any OpenGL header files.
The following list categorizes the extensions that can be queried with
|Modifier and Type||Method and Description|
Disable a specific extension in software.
Returns true if the extension is available.
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
public static boolean isAvailable(java.lang.String extension)
Generated on September 3, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com