|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.render.config.DisplayModeSelector
public abstract class DisplayModeSelector
DisplayModeSelector base.
If you want to know, which DisplayModes are awailable on your System and
for a specific OpenGLLayer, make use of it.
Instantiate it by invoking the static getImplementation() method.
getImplementation(org.xith3d.render.config.OpenGLLayer)| Field Summary | |
|---|---|
static boolean |
debug
|
| Constructor Summary | |
|---|---|
DisplayModeSelector()
|
|
| Method Summary | |
|---|---|
abstract DisplayMode[] |
getAvailableModes()
|
DisplayMode |
getBestMode(int width,
int height)
Returns the DisplayMode matching best the given parameters. |
DisplayMode |
getBestMode(int width,
int height,
int optimalBPP)
Returns the DisplayMode matching best the given parameters. |
DisplayMode |
getBestMode(int width,
int height,
int optimalBPP,
int optimalFreq)
Returns the DisplayMode matching best the given parameters. |
DisplayMode |
getDesktopMode()
|
static DisplayModeSelector |
getImplementation(OpenGLLayer layer)
|
protected void |
sortModes(DisplayMode[] modes)
Sorts the DisplayModes in ascending order. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static boolean debug
| Constructor Detail |
|---|
public DisplayModeSelector()
| Method Detail |
|---|
protected void sortModes(DisplayMode[] modes)
modes - the array of DisplayModespublic abstract DisplayMode[] getAvailableModes()
public DisplayMode getDesktopMode()
public DisplayMode getBestMode(int width,
int height,
int optimalBPP,
int optimalFreq)
width - height - optimalBPP - optimalFreq -
public DisplayMode getBestMode(int width,
int height,
int optimalBPP)
width - height - optimalBPP -
public DisplayMode getBestMode(int width,
int height)
width - height -
public static DisplayModeSelector getImplementation(OpenGLLayer layer)
layer -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||