namespace MoonWorks { /// /// All the information required for window creation. /// public struct WindowCreateInfo { /// /// The name of the window that will be displayed in the operating system. /// public string WindowTitle; /// /// The width of the window. /// public uint WindowWidth; /// /// The height of the window. /// public uint WindowHeight; /// /// Specifies if the window will be created in windowed mode or a fullscreen mode. /// public ScreenMode ScreenMode; /// /// Specifies the presentation mode for the window. Roughly equivalent to V-Sync. /// public PresentMode PresentMode; /// /// Whether the window can be resized using the operating system's window dragging feature. /// public bool SystemResizable; /// /// Specifies if the window will open at the maximum desktop resolution. /// public bool StartMaximized; public WindowCreateInfo( string windowTitle, uint windowWidth, uint windowHeight, ScreenMode screenMode, PresentMode presentMode, bool systemResizable = false, bool startMaximized = false ) { WindowTitle = windowTitle; WindowWidth = windowWidth; WindowHeight = windowHeight; ScreenMode = screenMode; PresentMode = presentMode; SystemResizable = systemResizable; StartMaximized = startMaximized; } } }