Logo Mibo

AdaptiveMonoGameProgram Module

MonoGame-specific adaptive program builder extensions.

Functions and values

Function or value Description

ofProgram program

Full Usage: ofProgram program

Parameters:
Returns: AdaptiveMonoGameProgram<'Frame>
Type parameters: 'Frame

Wraps an AdaptiveProgram into an AdaptiveMonoGameProgram with no device-level configuration.

program : AdaptiveProgram<'Frame>
Returns: AdaptiveMonoGameProgram<'Frame>

withConfig configure program

Full Usage: withConfig configure program

Parameters:
Returns: AdaptiveMonoGameProgram<'Frame>
Type parameters: 'Frame

Adds a device-level configuration callback that receives the Game instance and GraphicsDeviceManager for low-level setup.

Invoked in the AdaptiveMonoGameGame constructor, after the Core AdaptiveProgram.withConfig callbacks and before Initialize / GraphicsDevice creation — so settings like GraphicsProfile and PreferredBackBufferWidth/Height take effect.

Use this for properties that require direct GraphicsDeviceManager/Game access: GraphicsProfile, SynchronizeWithVerticalRetrace (vsync), IsFullScreen, HardwareModeSwitch, Window.AllowUserResizing, Content.RootDirectory, etc.

configure : Game * GraphicsDeviceManager -> unit
program : AdaptiveMonoGameProgram<'Frame>
Returns: AdaptiveMonoGameProgram<'Frame>

Type something to start searching.