/// <summary> /// Initializes a new instance of the <see cref="NativeWindowSettings"/> class. /// </summary> public NativeWindowSettings() { IsEventDriven = false; unsafe { CurrentMonitor = new Monitor((IntPtr)GLFWProvider.GLFW.Value.GetPrimaryMonitor()); } Title = "OpenTK Window"; IsFocused = true; IsVisible = true; WindowState = WindowState.Normal; WindowBorder = WindowBorder.Resizable; X = 0; Y = 0; Width = 640; Height = 360; API = ContextAPI.OpenGL; Profile = ContextProfile.Core; Flags = ContextFlags.Default; APIVersion = new Version(3, 3); IsFullscreen = false; Exists = true; }
/// <summary> /// Initializes a new instance of the <see cref="NativeWindowSettings"/> class. /// </summary> public NativeWindowSettings() { unsafe { CurrentMonitor = new Monitor((IntPtr)GLFWProvider.GLFW.Value.GetPrimaryMonitor()); } }
/// <summary> /// Initializes a new instance of the <see cref="NativeWindowSettings"/> class. /// </summary> public NativeWindowSettings() { unsafe { GLFWProvider.EnsureInitialized(); CurrentMonitor = new Monitor((IntPtr)GLFW.GetPrimaryMonitor()); } }