Exemplo n.º 1
0
        public static GlfwMonitor[] GetMonitors()
        {
            int          count;
            GlfwMonitor *array = GlfwCore.glfwGetMonitors(out count);

            GlfwMonitor[] result = new GlfwMonitor[count];
            for (int i = 0; i < count; ++i)
            {
                result[i] = array[i];
            }
            return(result);
        }
Exemplo n.º 2
0
 public static extern GlfwWindow *CreateWindow(int width, int height, [MarshalAs(UnmanagedType.LPUTF8Str)] string title, GlfwMonitor *monitor, GlfwWindow *share);