Exemplo n.º 1
0
        public unsafe GLFWmonitor[] getMonitors()
        {
            int    count = 0;
            var    ptr   = new System.IntPtr((int *)count);
            IntPtr raw   = Glfw.__Internal.GetWindowMonitor_0(ptr);

            GLFWmonitor[] monitors = new GLFWmonitor[count];
            for (int i = 0; i < count; i++)
            {
                monitors[i] = __CreateInstance(raw);
                raw         = IntPtr.Add(raw, IntPtr.Size);
            }
            return(monitors);
        }
Exemplo n.º 2
0
 public GLFWwindow(int width, int height, string title, GLFWmonitor m, GLFWwindow w)
 {
     __Instance = Glfw.__Internal.CreateWindow_0(width, height, title, m.__Instance, w.__Instance);
     this.title = title;
     Init();
 }