Package com.jogamp.opengl.util.caps
Class NonFSAAGLCapsChooser
- java.lang.Object
-
- com.jogamp.opengl.DefaultGLCapabilitiesChooser
-
- com.jogamp.opengl.util.caps.NonFSAAGLCapsChooser
-
- All Implemented Interfaces:
CapabilitiesChooser
,GLCapabilitiesChooser
public class NonFSAAGLCapsChooser extends DefaultGLCapabilitiesChooser
CustomGLCapabilitiesChooser
, filtering out all full screen anti-aliasing (FSAA, multisample) capabilities, i.e. all matchingGLCapabilitiesImmutable
withGLCapabilitiesImmutable.getSampleBuffers()
.
-
-
Constructor Summary
Constructors Constructor Description NonFSAAGLCapsChooser()
NonFSAAGLCapsChooser(boolean verbose)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
chooseCapabilities(CapabilitiesImmutable desired, List<? extends CapabilitiesImmutable> available, int recommendedIdx)
Chooses the index (0..available.length - 1) of theCapabilities
most closely matching the desired one from the list of all supported.
-
-
-
Method Detail
-
chooseCapabilities
public int chooseCapabilities(CapabilitiesImmutable desired, List<? extends CapabilitiesImmutable> available, int recommendedIdx)
Description copied from interface:CapabilitiesChooser
Chooses the index (0..available.length - 1) of theCapabilities
most closely matching the desired one from the list of all supported. Some of the entries in theavailable
array 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:
chooseCapabilities
in interfaceCapabilitiesChooser
- Overrides:
chooseCapabilities
in classDefaultGLCapabilitiesChooser
-
-