use of com.badlogic.gdx.Graphics.Monitor in project libgdx by libgdx.
the class Lwjgl3ApplicationConfiguration method getMonitors.
/**
* @return the connected {@link Monitor}s
*/
public static Monitor[] getMonitors() {
Lwjgl3Application.initializeGlfw();
PointerBuffer glfwMonitors = GLFW.glfwGetMonitors();
Monitor[] monitors = new Monitor[glfwMonitors.limit()];
for (int i = 0; i < glfwMonitors.limit(); i++) {
monitors[i] = toLwjgl3Monitor(glfwMonitors.get(i));
}
return monitors;
}
Aggregations