Search in sources :

Example 1 with Monitor

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;
}
Also used : Monitor(com.badlogic.gdx.Graphics.Monitor) Lwjgl3Monitor(com.badlogic.gdx.backends.lwjgl3.Lwjgl3Graphics.Lwjgl3Monitor) PointerBuffer(org.lwjgl.PointerBuffer)

Aggregations

Monitor (com.badlogic.gdx.Graphics.Monitor)1 Lwjgl3Monitor (com.badlogic.gdx.backends.lwjgl3.Lwjgl3Graphics.Lwjgl3Monitor)1 PointerBuffer (org.lwjgl.PointerBuffer)1