| Modifier and Type | Field and Description |
|---|---|
| private static final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static DisplayMode[] | Returns: an array of matching display modesthe minimum display resolution in pixels minWidth, int the minimum display resolution in pixels minHeight, int the maximum display resolution in pixels maxWidth, int the maximum display resolution in pixels maxHeight, int the minimum bit depth per pixel minBPP, int the maximum bit depth per pixel maxBPP, int the minimum display frequency in Hz minFreq, int the maximum display frequency in Hz maxFreq)Determine the available display modes that match the specified minimum and maximum criteria. |
| public static DisplayMode | Returns: the chosen display modea list of display modes to choose from dm, final String[] the names of the DisplayMode fields in the order in which you would like them sorted. param)Create the display by choosing from a list of display modes based on an order of preference. |
| DEBUG | back to summary |
|---|---|
| private static final boolean DEBUG | |
| Display | back to summary |
|---|---|
| public Display() | |
| getAvailableDisplayModes | back to summary |
|---|---|
| public static DisplayMode[] getAvailableDisplayModes(int minWidth, int minHeight, int maxWidth, int maxHeight, int minBPP, int maxBPP, int minFreq, int maxFreq) throws LWJGLException Determine the available display modes that match the specified minimum and maximum criteria. If any given criterium is specified as -1 then it is ignored.
| |
| setDisplayMode | back to summary |
|---|---|
| public static DisplayMode setDisplayMode(DisplayMode[] dm, final String[] param) throws Exception Create the display by choosing from a list of display modes based on an order of preference. You must supply a list of allowable display modes, probably by calling getAvailableDisplayModes(), and an array with the order in which you would like them sorted in descending order. This method attempts to create the topmost display mode; if that fails, it will try the next one, and so on, until there are no modes left. If no mode is set at the end, an exception is thrown.
| |