Package com.jme3.system
Class DisplayInfo
java.lang.Object
com.jme3.system.DisplayInfo
This class holds information about the display that was returned by glfwGetMonitors() calls in
the context class
-
Method Summary
Modifier and TypeMethodDescriptionboolean
long
Returns the monitor pointer (native), the virtual memory address used by lwjgl.int
Returns the height of the display.getName()
Returns the display name.int
getRate()
Returns the refresh rate of the display, in hertz.int
getWidth()
Returns the width of the display.int
hashCode()
boolean
Determines if this display belongs to the main monitor.toString()
-
Method Details
-
getDisplay
public long getDisplay()Returns the monitor pointer (native), the virtual memory address used by lwjgl.- Returns:
- the monitor pointer (native), the virtual memory address used by lwjgl
-
getWidth
public int getWidth()Returns the width of the display.- Returns:
- the width of the display.
-
getHeight
public int getHeight()Returns the height of the display.- Returns:
- the height of the display
-
getRate
public int getRate()Returns the refresh rate of the display, in hertz.- Returns:
- the refresh rate of the display, in hertz
-
isPrimary
public boolean isPrimary()Determines if this display belongs to the main monitor.- Returns:
true
if the display is primary,false
otherwise.
-
getName
Returns the display name.- Returns:
- display name
-
hashCode
public int hashCode() -
equals
-
toString
-