Example #1
0
        public static Monitor[] GetMonitors(out int count)
        {
            int      lenght;
            Monitor *monitors = Imports.glfwGetMonitors(out lenght);

            Monitor[] result = new Monitor[lenght];
            for (int i = 0; i < lenght; i++)
            {
                result[i] = monitors[i];
            }
            count = lenght;
            return(result);
        }