Esempio n. 1
0
        public float getPpcY()
        {
            Lwjgl3Monitor monitor = (Lwjgl3Monitor)getMonitor();

            GLFW.GLFW.GetMonitorPhysicalSize(monitor.getMonitorHandle(), out var sizeX, out var sizeY);
            CDX.DisplayMode mode = getDisplayMode();
            return(mode.height / (float)sizeY * 10);
        }
Esempio n. 2
0
        public Monitor[] getMonitors()
        {
            var glfwMonitors = GLFW.GLFW.GetMonitors();

            var monitors = new Lwjgl3Monitor[glfwMonitors.Length];

            for (int i = 0; i < glfwMonitors.Length; i++)
            {
                var glfwMonitor = glfwMonitors[i];
                monitors[i] = ApplicationConfiguration.toLwjgl3Monitor(glfwMonitor);
            }

            return(monitors);
        }