com.threerings.media.util
Class ModeUtil

java.lang.Object
  extended by com.threerings.media.util.ModeUtil

public class ModeUtil
extends Object

Display mode related utilities.


Constructor Summary
ModeUtil()
           
 
Method Summary
static DisplayMode getDisplayMode(GraphicsDevice gd, int width, int height, int desiredDepth, int minimumDepth)
          Gets a display mode that matches the specified parameters.
static String toString(DisplayMode mode)
          Returns a string representation of the supplied display mode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModeUtil

public ModeUtil()
Method Detail

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.