Table of Contents

Class MEWindow

Namespace
MonoEight.Core
Assembly
MonoEight.Template.dll

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

bool

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

bool

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

graphics GraphicsDeviceManager

The main graphics device manager.

window GameWindow

The main game window.

ToggleFullscreen()

Toggles the window between borderless fullscreen and windowed mode.

public static void ToggleFullscreen()