Package io.github.ocelot.window
Class Monitor
java.lang.Object
io.github.ocelot.window.Monitor
A monitor detected by GLFW that can be used in window creation.
-
Constructor Details
-
Monitor
public Monitor(long handle)
-
-
Method Details
-
refreshVideoModes
public void refreshVideoModes()Queries GLFW for the position and valid video modes of this monitor. -
getCurrentMode
- Returns:
- The current video mode of the monitor
-
getX
public int getX()- Returns:
- The absolute x position of this monitor
-
getY
public int getY()- Returns:
- The absolute y position of this monitor
-
getVideoModes
- Returns:
- A view of all possible video modes for this monitor
-
getHandle
public long getHandle()- Returns:
- The GLFW id for this monitor
-
toString
-