public final class Display
extends java.lang.Object
Constructor and Description |
---|
Display() |
Modifier and Type | Method and Description |
---|---|
static DisplayMode[] |
getAvailableDisplayModes(int minWidth,
int minHeight,
int maxWidth,
int maxHeight,
int minBPP,
int maxBPP,
int minFreq,
int maxFreq)
Determine the available display modes that match the specified minimum and maximum criteria.
|
static DisplayMode |
setDisplayMode(DisplayMode[] dm,
java.lang.String[] param)
Create the display by choosing from a list of display modes based on an order of preference.
|
public static DisplayMode[] getAvailableDisplayModes(int minWidth, int minHeight, int maxWidth, int maxHeight, int minBPP, int maxBPP, int minFreq, int maxFreq) throws LWJGLException
minWidth
- the minimum display resolution in pixelsminHeight
- the minimum display resolution in pixelsmaxWidth
- the maximum display resolution in pixelsmaxHeight
- the maximum display resolution in pixelsminBPP
- the minimum bit depth per pixelmaxBPP
- the maximum bit depth per pixelminFreq
- the minimum display frequency in HzmaxFreq
- the maximum display frequency in HzLWJGLException
public static DisplayMode setDisplayMode(DisplayMode[] dm, java.lang.String[] param) throws java.lang.Exception
dm
- a list of display modes to choose fromparam
- the names of the DisplayMode fields in the order in which you would like them sorted.java.lang.NoSuchFieldException
- if one of the params is not a field in DisplayModejava.lang.Exception
- if no display mode could be setDisplayMode
Copyright © 2002-2009 lwjgl.org. All Rights Reserved.