Logo Mibo

GameConfig Type

Configuration for game window and framerate settings.

Config callbacks return a new GameConfig with desired changes applied. Use Program.withConfig to register callbacks.

Record fields

Record Field Description

Height

Full Usage: Height

Field type: int

Window height in pixels. Default: 600.

Field type: int

MinHeight

Full Usage: MinHeight

Field type: int voption

Minimum window height in pixels. When set, enables resizable window.

Field type: int voption

MinWidth

Full Usage: MinWidth

Field type: int voption

Minimum window width in pixels. When set, enables resizable window.

Field type: int voption

Resizable

Full Usage: Resizable

Field type: bool

Whether the user can resize the window. Default: false. Setting MinWidth or MinHeight also enables it.

Field type: bool

TargetFPS

Full Usage: TargetFPS

Field type: int voption

Target render rate. ValueNone = use the backend's default (no cap imposed); ValueSome n = cap at n FPS (MonoGame fixed timestep at 1/n, Raylib SetTargetFPS). Defaults to ValueNone.

Field type: int voption

Title

Full Usage: Title

Field type: string

Window title.

Field type: string

Width

Full Usage: Width

Field type: int

Window width in pixels. Default: 800.

Field type: int

WindowMode

Full Usage: WindowMode

Field type: WindowMode

Window presentation mode at startup. Default: Windowed.

Field type: WindowMode

Type something to start searching.