Header menu logo Mibo

Camera2DConfig Type

Camera rendering configuration for 2D multi-camera support. MonoGame analogue of the raylib-side Camera2DConfig.

Unlike the raylib version, Viewport is expressed in **pixels** as a Rectangle, since MonoGame’s GraphicsDevice.Viewport and scissor rectangles are pixel-based. ValueNone means fullscreen (no custom viewport).

ClearColor doubles as the clear signal: ValueNone = don’t clear (overlay on existing content), ValueSome color = clear with this color before rendering.

Record fields

Record Field Description

Camera

Full Usage: Camera

Field type: Camera2D

The MonoGame 2D camera for rendering.

Field type: Camera2D

ClearColor

Full Usage: ClearColor

Field type: Color voption

Clear color before rendering. ValueNone = don’t clear.

Field type: Color voption

Viewport

Full Usage: Viewport

Field type: Rectangle voption

Viewport in pixel coordinates. ValueNone = fullscreen.

Field type: Rectangle voption

Type something to start searching.