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); }
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(); }