Logo Mibo

MonoGameWindow Type

The MonoGame IWindow: drives the host's GraphicsDeviceManager. Registered by the runtime hosts.

Constructors

Constructor Description

MonoGameWindow(graphics, minWidth, minHeight)

Full Usage: MonoGameWindow(graphics, minWidth, minHeight)

Parameters:
Returns: MonoGameWindow
graphics : GraphicsDeviceManager
minWidth : int
minHeight : int
Returns: MonoGameWindow

Instance members

Instance member Description

this.SyncBackBuffer

Full Usage: this.SyncBackBuffer

Parameters:

Per-frame window bookkeeping: outside exclusive fullscreen, resizes the backbuffer when the client area changes (clamped to the minimum size), then tracks the backbuffer size in the context dimensions.

The context tracks the BACKBUFFER, not the client area: in exclusive fullscreen the two differ, and the backbuffer is what the pipelines draw to. Exclusive fullscreen owns its backbuffer size, so the resize step is skipped there. No-op while minimized (a zero client area is not a valid backbuffer).

game : Game
ctx : GameContext

Static members

Static member Description

MonoGameWindow.ApplyConfig(config, game, graphics)

Full Usage: MonoGameWindow.ApplyConfig(config, game, graphics)

Parameters:

Translates the window-management fields of a GameConfig to window and device settings. Runs before the DeviceConfig callbacks, which can still override.

config : GameConfig
game : Game
graphics : GraphicsDeviceManager

Type something to start searching.