com.hermetica.magician
Class GLExtension
java.lang.Object
|
+--com.hermetica.magician.GLExtension
- public class GLExtension
- extends java.lang.Object
This class encapsulates OpenGL, GLX and wgl extensions ( amongst others ).
The class provides entry points to all known extensions and will handle
probing the presence of extensions for you.
- Version:
- $Revision: 1.2 $
- Author:
- Alligator Descartes <descarte@arcana.co.uk>
Field Summary |
static CoreGL |
gl
OpenGL pipeline used to detect extension support |
static java.lang.String |
VERSION
Version information |
Method Summary |
boolean |
areExtensionsAvailable()
Tests whether a given extension library is load. |
boolean |
isExtensionSupported(java.lang.String extension)
Tests to see whether or not the given extension is available within
this implementation of OpenGL
|
static boolean |
loadExtensionLibrary(java.lang.String name,
java.lang.String version)
Loads an extension library with the given name. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
VERSION
public static final java.lang.String VERSION
- Version information
gl
public static CoreGL gl
- OpenGL pipeline used to detect extension support
GLExtension
public GLExtension()
loadExtensionLibrary
public static boolean loadExtensionLibrary(java.lang.String name,
java.lang.String version)
- Loads an extension library with the given name. The actual library
name is automagically worked out in the same way in which the core
Magician library load is calculated
- Parameters:
name
- The name of the extension library to loadversion
- The version number ( if applicable ) of the library
areExtensionsAvailable
public boolean areExtensionsAvailable()
- Tests whether a given extension library is load. This should be
overridden by extension subclasses
isExtensionSupported
public boolean isExtensionSupported(java.lang.String extension)
- Tests to see whether or not the given extension is available within
this implementation of OpenGL
- Parameters:
extension
- The name of the extension