net.java.games.jogl.impl

Class GLContextFactory

Known Direct Subclasses:
X11GLContextFactory

public abstract class GLContextFactory
extends java.lang.Object

Method Summary

abstract GraphicsConfiguration
chooseGraphicsConfiguration(GLCapabilities capabilities, GLCapabilitiesChooser chooser, GraphicsDevice device)
Selects a GraphicsConfiguration on the specified GraphicsDevice that matches the desired GLCapabilities according to the specified GLCapabilitiesChooser's selection algorithm and any hints provided by the underlying window system.
abstract GLContext
createGLContext(Component component, GLCapabilities capabilities, GLCapabilitiesChooser chooser, GLContext shareWith)
static GLContextFactory
getFactory()

Method Details

chooseGraphicsConfiguration

public abstract GraphicsConfiguration chooseGraphicsConfiguration(GLCapabilities capabilities,
                                                                  GLCapabilitiesChooser chooser,
                                                                  GraphicsDevice device)
Selects a GraphicsConfiguration on the specified GraphicsDevice that matches the desired GLCapabilities according to the specified GLCapabilitiesChooser's selection algorithm and any hints provided by the underlying window system. This routine is currently only implemented on X11, where it is necessary to choose the desired visual before creating the underlying AWT Canvas; on other platforms it returns null, yielding the default behavior.

createGLContext

public abstract GLContext createGLContext(Component component,
                                          GLCapabilities capabilities,
                                          GLCapabilitiesChooser chooser,
                                          GLContext shareWith)

getFactory

public static GLContextFactory getFactory()