Class MEWindow
A static manager for controlling the application window.
public static class MEWindow
- Inheritance
-
MEWindow
- Inherited Members
Properties
Graphics
Gets the Microsoft.Xna.Framework.GraphicsDeviceManager used by the game.
public static GraphicsDeviceManager? Graphics { get; }
Property Value
- GraphicsDeviceManager
IsFullscreen
Gets or sets whether the game window is currently in fullscreen mode.
public static bool IsFullscreen { get; set; }
Property Value
Resolution
Gets or sets the internal game resolution.
public static Point Resolution { get; set; }
Property Value
- Point
Remarks
This is the size of the render target, not necessarily the size of the actual OS window.
StartFullscreen
Gets or sets whether the game should start in fullscreen mode.
public static bool StartFullscreen { get; set; }
Property Value
Window
Gets the underlying Microsoft.Xna.Framework.GameWindow.
public static GameWindow? Window { get; }
Property Value
- GameWindow
Methods
Initialize(GraphicsDeviceManager, GameWindow)
Initializes the window manager with the required MonoGame references.
public static void Initialize(GraphicsDeviceManager graphics, GameWindow window)
Parameters
graphicsGraphicsDeviceManagerThe main graphics device manager.
windowGameWindowThe main game window.
ToggleFullscreen()
Toggles the window between borderless fullscreen and windowed mode.
public static void ToggleFullscreen()