Top Description Fields Constructors Methods
com.jogamp.opengl

public Class DefaultGLCapabilitiesChooser

extends Object
implements GLCapabilitiesChooser
Class Inheritance
All Implemented Interfaces
com.jogamp.opengl.GLCapabilitiesChooser, com.jogamp.nativewindow.CapabilitiesChooser
Known Direct Subclasses
com.jogamp.opengl.GenericGLCapabilitiesChooser
Imports
com.jogamp.nativewindow.NativeWindowException, .CapabilitiesImmutable, java.util.List, com.jogamp.common.ExceptionUtils, com.jogamp.common.util.PropertyAccess, jogamp.opengl.Debug

The default implementation of the GLCapabilitiesChooser interface, which provides consistent visual selection behavior across platforms. The precise algorithm is deliberately left loosely specified. Some properties are:

Field Summary

Modifier and TypeField and Description
private static final int
private static final int
private static final boolean
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int

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)

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.
private static int
sign(final int score)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ACCUM_MISMATCH_PENALTY_SCALEback to summary
private static final int ACCUM_MISMATCH_PENALTY_SCALE
COLOR_MISMATCH_PENALTY_SCALEback to summary
private static final int COLOR_MISMATCH_PENALTY_SCALE
DEBUGback to summary
private static final boolean DEBUG
DEPTH_MISMATCH_PENALTY_SCALEback to summary
private static final int DEPTH_MISMATCH_PENALTY_SCALE
DOUBLE_BUFFER_MISMATCH_PENALTYback to summary
private static final int DOUBLE_BUFFER_MISMATCH_PENALTY
MULTISAMPLE_EXTENSION_MISMATCH_PENALTYback to summary
private static final int MULTISAMPLE_EXTENSION_MISMATCH_PENALTY
MULTISAMPLE_MISMATCH_PENALTYback to summary
private static final int MULTISAMPLE_MISMATCH_PENALTY
MULTISAMPLE_MISMATCH_PENALTY_SCALEback to summary
private static final int MULTISAMPLE_MISMATCH_PENALTY_SCALE
NO_SCOREback to summary
private static final int NO_SCORE
OPAQUE_MISMATCH_PENALTYback to summary
private static final int OPAQUE_MISMATCH_PENALTY
STENCIL_MISMATCH_PENALTYback to summary
private static final int STENCIL_MISMATCH_PENALTY
STENCIL_MISMATCH_PENALTY_SCALEback to summary
private static final int STENCIL_MISMATCH_PENALTY_SCALE

Constructor Detail

DefaultGLCapabilitiesChooserback to summary
public DefaultGLCapabilitiesChooser()

Method Detail

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

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
signback to summary
private static int sign(final int score)