All Packages  This Package  Class Hierarchy  Class Search  Index

Class com.hermetica.magician.GLExtension
java.lang.Object
   |
   +----com.hermetica.magician.GLExtension

  Summary

public class  GLExtension
     extends java.lang.Object
{
          // Fields 2
     public static final String VERSION;
     public static CoreGL gl;

          // Constructors 1
     public GLExtension();

          // Methods 3
     public static boolean loadExtensionLibrary(String, String);

     public boolean areExtensionsAvailable();
     public boolean isExtensionSupported(String);
}

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>




  Fields

· VERSION

Summary  |  Top

   public static final String VERSION

Version information


· gl

Summary  |  Top
   public static CoreGL gl

OpenGL pipeline used to detect extension support


  Constructors

· GLExtension

Summary  |  Top

   public GLExtension() 

Default constructor



  Methods

· loadExtensionLibrary

Summary  |  Top
   public static boolean loadExtensionLibrary(String name, 
                                              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

Parameter Description
name The name of the extension library to load
version The version number ( if applicable ) of the library



· areExtensionsAvailable

Summary  |  Top
   public boolean areExtensionsAvailable() 

Tests whether a given extension library is load. This should be overridden by extension subclasses



· isExtensionSupported

Summary  |  Top
   public boolean isExtensionSupported(String extension) 

Tests to see whether or not the given extension is available within this implementation of OpenGL

Parameter Description
extension The name of the extension



All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7