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 TypeMethodDescriptionbooleanlongReturns the monitor pointer (native), the virtual memory address used by lwjgl.intReturns the height of the display.getName()Returns the display name.intgetRate()Returns the refresh rate of the display, in hertz.intgetWidth()Returns the width of the display.inthashCode()booleanDetermines 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:
trueif the display is primary,falseotherwise.
-
getName
Returns the display name.- Returns:
- display name
-
hashCode
public int hashCode() -
equals
-
toString
-