public class BasicGLCapabilitiesChooser
extends com.jogamp.opengl.DefaultGLCapabilitiesChooser
GLCapabilitiesChooser for use
with WorldWindow implementations (for example, WorldWindowGLCanvas and WorldWindowGLJPanel).
BasicGLCapabilitiesChooser extends the behavior of the default GLCapabilitiesChooser by implementing a fallback behavior when device supported stereo is requested but is not supported by the hardware. In this case, BasicGLCapabilitiesChooser attempts to find a match to the desired capabilities, but without device supported stereo. When the application does not request device supported stereo, BasicGLCapabilitiesChooser provides the same behavior as DefaultGLCapabilitiesChooser.
| Constructor and Description |
|---|
BasicGLCapabilitiesChooser()
Constructs a new
BasicGLCapabilitiesChooser, but otherwise does nothing. |
| Modifier and Type | Method and Description |
|---|---|
int |
chooseCapabilities(com.jogamp.nativewindow.CapabilitiesImmutable desired,
java.util.List<? extends com.jogamp.nativewindow.CapabilitiesImmutable> available,
int windowSystemRecommendedChoice)
Overridden to provide a fallback behavior when device supported stereo requested but is not supported by the
hardware.
|
protected int |
chooseStereoCapabilities(com.jogamp.nativewindow.CapabilitiesImmutable desired,
java.util.List<? extends com.jogamp.nativewindow.CapabilitiesImmutable> available,
int windowSystemRecommendedChoice)
Attempts to use the superclass functionality to find a match to the desired GL capabilities in the list of
available capabilities.
|
public BasicGLCapabilitiesChooser()
BasicGLCapabilitiesChooser, but otherwise does nothing.public int chooseCapabilities(com.jogamp.nativewindow.CapabilitiesImmutable desired,
java.util.List<? extends com.jogamp.nativewindow.CapabilitiesImmutable> available,
int windowSystemRecommendedChoice)
desired GL capabilities does not specify device supported stereo, this calls
DefaultGLCapabilitiesChooser.chooseCapabilities.chooseCapabilities in interface com.jogamp.nativewindow.CapabilitiesChooserchooseCapabilities in class com.jogamp.opengl.DefaultGLCapabilitiesChooserdesired - the desired GL capabilities.available - the list of available GL capabilities on the graphics device.windowSystemRecommendedChoice - an index into the list of available GL capabilities indicating the window
system's recommended capabilities, or -1 to indicate no recommendation.protected int chooseStereoCapabilities(com.jogamp.nativewindow.CapabilitiesImmutable desired,
java.util.List<? extends com.jogamp.nativewindow.CapabilitiesImmutable> available,
int windowSystemRecommendedChoice)
desired - the desired GL capabilities.available - the list of available GL capabilities on the graphics device.windowSystemRecommendedChoice - an index into the list of available GL capabilities indicating the window
system's recommended capabilities, or -1 to indicate no recommendation.