Interface PanamaGLFactory

All Superinterfaces:
PlatformMatcher
All Known Implementing Classes:
APanamaGLFactory

public interface PanamaGLFactory extends PlatformMatcher
A PanamaGLFactory generates components for a given platform (CPU, OS) and will ensure the appropriate bindings as well as OpenGL way of implementing a rendering technic are applied a target platform. Platforms are resolved automatically through
invalid @link
{@link PanamaGLFactory.select()
} which picks the first PanamaGLFactory in classpath that PlatformMatcher.matches(Platform) hence the executing computer. PanamaGL component initialization starts while initializing a new GLCanvas for adding to an existing UI. The canvas will initialize all subsequent required components in order and will only require a GLEventListener to perform the application OpenGL calls through the GL interface. The initialization hence looks like :
 
 GLEventAdapter listener = TeapotGLEventListener();
 PanamaGLFactory factory = PanamaGLFactory.select();
 GLCanvasSwing panel = new GLCanvasSwing();
 panel.setGLEventListener(listener);
 frame.add(panel);
 
 
Classes generated by the available factories are represented below :
Author:
Martin Pernollet