|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.media.nativewindow.GraphicsConfigurationFactory
com.jogamp.opengl.impl.macosx.cgl.MacOSXCGLGraphicsConfigurationFactory
public class MacOSXCGLGraphicsConfigurationFactory
Subclass of GraphicsConfigurationFactory used when non-AWT tookits are used on OSX platforms. Toolkits will likely need to delegate to this one to change the accepted and returned types of the GraphicsDevice and GraphicsConfiguration abstractions.
Field Summary | |
---|---|
protected static boolean |
DEBUG
|
Constructor Summary | |
---|---|
MacOSXCGLGraphicsConfigurationFactory()
|
Method Summary | |
---|---|
AbstractGraphicsConfiguration |
chooseGraphicsConfiguration(Capabilities capabilities,
CapabilitiesChooser chooser,
AbstractGraphicsScreen absScreen)
Selects a graphics configuration on the specified graphics device compatible with the supplied Capabilities . |
protected static MacOSXCGLGraphicsConfiguration |
chooseGraphicsConfigurationStatic(Capabilities capabilities,
CapabilitiesChooser chooser,
AbstractGraphicsScreen absScreen,
boolean usePBuffer)
|
Methods inherited from class javax.media.nativewindow.GraphicsConfigurationFactory |
---|
getFactory, getFactory, registerFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final boolean DEBUG
Constructor Detail |
---|
public MacOSXCGLGraphicsConfigurationFactory()
Method Detail |
---|
public AbstractGraphicsConfiguration chooseGraphicsConfiguration(Capabilities capabilities, CapabilitiesChooser chooser, AbstractGraphicsScreen absScreen)
GraphicsConfigurationFactory
Selects a graphics configuration on the specified graphics
device compatible with the supplied Capabilities
. Some
platforms (e.g.: X11, EGL, KD) require the graphics configuration
to be specified when the native window is created.
These architectures have seperated their device, screen, window and drawable
context and hence are capable of quering the capabilities for each screen.
A fully established window is not required.
Other platforms (e.g. Windows, MacOSX) don't offer the mentioned seperation
and hence need a fully established window and it's drawable.
Here the validation of the capabilities is performed later.
In this case, the AbstractGraphicsConfiguration implementation
must allow an overwrite of the Capabilites, for example
DefaultGraphicsConfiguration.setChosenCapabilities(..)
.
This method is mainly intended to be both used and implemented by the OpenGL binding.
The concrete data type of the passed graphics device and
returned graphics configuration must be specified in the
documentation binding this particular API to the underlying
window toolkit. The Reference Implementation accepts AWTGraphicsDevice
objects and returns AWTGraphicsConfiguration
objects. On
X11 platforms where the AWT is not in use, it also accepts
X11GraphicsDevice
objects and returns X11GraphicsConfiguration
objects.
chooseGraphicsConfiguration
in class GraphicsConfigurationFactory
GraphicsConfigurationFactory.chooseGraphicsConfiguration(Capabilities, CapabilitiesChooser, AbstractGraphicsScreen)
,
DefaultGraphicsConfiguration.setChosenCapabilities(Capabilities caps)
protected static MacOSXCGLGraphicsConfiguration chooseGraphicsConfigurationStatic(Capabilities capabilities, CapabilitiesChooser chooser, AbstractGraphicsScreen absScreen, boolean usePBuffer)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |