Top Description Constructors Methods
com.jogamp.opengl

public Class GenericGLCapabilitiesChooser

extends DefaultGLCapabilitiesChooser
Class Inheritance
Imports
java.util.List, com.jogamp.nativewindow.CapabilitiesImmutable, com.jogamp.opengl.DefaultGLCapabilitiesChooser

Ignores windowSystemRecommendedChoice parameter, otherwise uses DefaultGLCapabilitiesChooser implementation.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
chooseCapabilities(final CapabilitiesImmutable desired, final List<? extends CapabilitiesImmutable> available, final int windowSystemRecommendedChoice)

Overrides com.jogamp.opengl.DefaultGLCapabilitiesChooser.chooseCapabilities.

Implements com.jogamp.nativewindow.CapabilitiesChooser.chooseCapabilities.

Chooses the index (0..available.length - 1) of the Capabilities most closely matching the desired one from the list of all supported.

Constructor Detail

GenericGLCapabilitiesChooserback to summary
public GenericGLCapabilitiesChooser()

Method Detail

chooseCapabilitiesback to summary
public int chooseCapabilities(final CapabilitiesImmutable desired, final List<? extends CapabilitiesImmutable> available, final int windowSystemRecommendedChoice)

Overrides com.jogamp.opengl.DefaultGLCapabilitiesChooser.chooseCapabilities.

Implements com.jogamp.nativewindow.CapabilitiesChooser.chooseCapabilities.

Doc from com.jogamp.nativewindow.CapabilitiesChooser.chooseCapabilities.

Chooses the index (0..available.length - 1) of the Capabilities most closely matching the desired one from the list of all supported. Some of the entries in the available 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 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.

Annotations
@Override