28package com.jogamp.opengl.util.caps;
30import java.util.ArrayList;
33import com.jogamp.nativewindow.CapabilitiesImmutable;
34import com.jogamp.opengl.DefaultGLCapabilitiesChooser;
35import com.jogamp.opengl.GLCapabilitiesImmutable;
36import com.jogamp.opengl.GLCapabilitiesChooser;
43 private final boolean verbose;
45 this.verbose = verbose;
53 final List<? extends CapabilitiesImmutable> available,
56 if( 0 <= recommendedIdx && recommendedIdx < available.size() ) {
62 final List<GLCapabilitiesImmutable> clean =
new ArrayList<GLCapabilitiesImmutable>();
63 for (
int i = 0; i < available.size(); i++) {
70 if( recommendedIdx == i ) {
72 System.err.println(
"Dropping["+i+
"] "+caps+
", sameidx recommended["+recommendedIdx+
"] = "+recommended);
75 }
else if( verbose ) {
76 System.err.println(
"Dropping "+caps+
" != recommended["+recommendedIdx+
"]");
82 return super.chooseCapabilities(desired, clean, recommendedIdx);
Custom GLCapabilitiesChooser, filtering out all full screen anti-aliasing (FSAA, multisample) capabil...
int chooseCapabilities(final CapabilitiesImmutable desired, final List<? extends CapabilitiesImmutable > available, int recommendedIdx)
Chooses the index (0..available.length - 1) of the Capabilities most closely matching the desired one...
NonFSAAGLCapsChooser(final boolean verbose)
Specifies an immutable set of capabilities that a window's rendering context must support,...
Specifies an immutable set of OpenGL capabilities.
boolean getSampleBuffers()
Returns whether sample buffers for full-scene antialiasing (FSAA) should be allocated for this drawab...