net.java.games.jogl
Interface GLCapabilitiesChooser
- All Known Implementing Classes:
- DefaultGLCapabilitiesChooser
- public interface GLCapabilitiesChooser
Provides a mechanism by which applications can customize the
window type selection for a given GLCapabilities
.
chooseCapabilities
public int chooseCapabilities(GLCapabilities desired,
GLCapabilities[] available,
int windowSystemRecommendedChoice)
- 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. 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.