Package com.jogamp.opengl
Class GenericGLCapabilitiesChooser
java.lang.Object
com.jogamp.opengl.DefaultGLCapabilitiesChooser
com.jogamp.opengl.GenericGLCapabilitiesChooser
- All Implemented Interfaces:
CapabilitiesChooser,GLCapabilitiesChooser
Ignores windowSystemRecommendedChoice parameter,
otherwise uses
DefaultGLCapabilitiesChooser implementation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintchooseCapabilities(CapabilitiesImmutable desired, List<? extends CapabilitiesImmutable> available, int windowSystemRecommendedChoice) Chooses the index (0..available.length - 1) of theCapabilitiesmost closely matching the desired one from the list of all supported.
-
Constructor Details
-
GenericGLCapabilitiesChooser
public GenericGLCapabilitiesChooser()
-
-
Method Details
-
chooseCapabilities
public int chooseCapabilities(CapabilitiesImmutable desired, List<? extends CapabilitiesImmutable> available, int windowSystemRecommendedChoice) Description copied from interface:com.jogamp.nativewindow.CapabilitiesChooserChooses the index (0..available.length - 1) of theCapabilitiesmost closely matching the desired one from the list of all supported. Some of the entries in theavailablearray may be null; the chooser must ignore these. The windowSystemRecommendedChoice parameter may be provided to the chooser by the underlying window system; if this index is valid, it is recommended, but not necessarily required, that the chooser select that entry.Note: this method is called automatically by the
GraphicsConfigurationFactory.chooseGraphicsConfiguration(com.jogamp.nativewindow.CapabilitiesImmutable, com.jogamp.nativewindow.CapabilitiesImmutable, com.jogamp.nativewindow.CapabilitiesChooser, com.jogamp.nativewindow.AbstractGraphicsScreen, int)method when an instance of this class is passed in to it. It should generally not be invoked by users directly, unless it is desired to delegate the choice to some other CapabilitiesChooser object.- Specified by:
chooseCapabilitiesin interfaceCapabilitiesChooser- Overrides:
chooseCapabilitiesin classDefaultGLCapabilitiesChooser
-