com.threerings.media.util
Class ModeUtil
java.lang.Object
com.threerings.media.util.ModeUtil
public class ModeUtil
- extends Object
Display mode related utilities.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModeUtil
public ModeUtil()
getDisplayMode
public static DisplayMode getDisplayMode(GraphicsDevice gd,
int width,
int height,
int desiredDepth,
int minimumDepth)
- Gets a display mode that matches the specified parameters. The
screen resolution must match the specified resolution exactly, the
specified desired depth will be used if it is available, and if
not, the highest depth greater than or equal to the specified
minimum depth is used. The highest refresh rate available for the
desired mode is also used.
toString
public static String toString(DisplayMode mode)
- Returns a string representation of the supplied display mode.