Exemplo n.º 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;
        }
Exemplo n.º 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());
     }
 }
Exemplo n.º 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());
     }
 }