Package org.lwjgl.opengl
Class DisplayMode
- java.lang.Object
-
- org.lwjgl.opengl.DisplayMode
-
public final class DisplayMode extends java.lang.Object
This class encapsulates the properties for a given display mode. This class is not instantiable, and is aquired from theDisplay. getAvailableDisplayModes()
method.- Version:
- $Revision$ $Id$
- Author:
- cix_foo
-
-
Constructor Summary
Constructors Constructor Description DisplayMode(int width, int height)
Construct a display mode.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Tests forDisplayMode
equalityint
getBitsPerPixel()
int
getFrequency()
int
getHeight()
int
getWidth()
int
hashCode()
Retrieves the hashcode for this objectboolean
isFullscreenCapable()
True if this instance can be used for fullscreen modesjava.lang.String
toString()
Retrieves a String representation of thisDisplayMode
-
-
-
Constructor Detail
-
DisplayMode
public DisplayMode(int width, int height)
Construct a display mode. DisplayModes constructed through the public constructor can only be used to specify the dimensions of the Display in windowed mode. To get the available DisplayModes for fullscreen modes, use Display.getAvailableDisplayModes().- Parameters:
width
- The Display width.height
- The Display height.- See Also:
Display
-
-
Method Detail
-
isFullscreenCapable
public boolean isFullscreenCapable()
True if this instance can be used for fullscreen modes
-
getWidth
public int getWidth()
-
getHeight
public int getHeight()
-
getBitsPerPixel
public int getBitsPerPixel()
-
getFrequency
public int getFrequency()
-
equals
public boolean equals(java.lang.Object obj)
Tests forDisplayMode
equality- Overrides:
equals
in classjava.lang.Object
- See Also:
Object.equals(Object)
-
hashCode
public int hashCode()
Retrieves the hashcode for this object- Overrides:
hashCode
in classjava.lang.Object
- See Also:
Object.hashCode()
-
toString
public java.lang.String toString()
Retrieves a String representation of thisDisplayMode
- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
-