示例#1
0
        /// <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;
        }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NativeWindowSettings"/> class.
 /// </summary>
 public NativeWindowSettings()
 {
     unsafe
     {
         CurrentMonitor = new Monitor((IntPtr)GLFWProvider.GLFW.Value.GetPrimaryMonitor());
     }
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NativeWindowSettings"/> class.
 /// </summary>
 public NativeWindowSettings()
 {
     unsafe
     {
         GLFWProvider.EnsureInitialized();
         CurrentMonitor = new Monitor((IntPtr)GLFW.GetPrimaryMonitor());
     }
 }