net.java.games.jogl
Class DefaultGLCapabilitiesChooser

java.lang.Object
  extended bynet.java.games.jogl.DefaultGLCapabilitiesChooser
All Implemented Interfaces:
GLCapabilitiesChooser

public class DefaultGLCapabilitiesChooser
extends java.lang.Object
implements GLCapabilitiesChooser

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:


Constructor Summary
DefaultGLCapabilitiesChooser()
           
 
Method Summary
 int chooseCapabilities(GLCapabilities desired, GLCapabilities[] available)
          Chooses the index (0..available.length - 1) of the GLCapabilities most closely matching the desired one from the list of all supported.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultGLCapabilitiesChooser

public DefaultGLCapabilitiesChooser()
Method Detail

chooseCapabilities

public int chooseCapabilities(GLCapabilities desired,
                              GLCapabilities[] available)
Description copied from interface: GLCapabilitiesChooser
Chooses the index (0..available.length - 1) of the GLCapabilities 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.

Specified by:
chooseCapabilities in interface GLCapabilitiesChooser