Header menu logo Mibo.Raylib

Camera2DConfig Type

Camera rendering configuration for 2D multi-camera support.

Controls how a camera renders: viewport bounds and clear behavior. Construct via Camera2D.render and the with* modifiers.

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 raylib 2D camera for rendering.

Field type: Camera2D

ClearColor

Full Usage: ClearColor

Field type: Color voption

Clear color before rendering. ValueNone = don't clear. ValueSome = clear with this color.

Field type: Color voption

Viewport

Full Usage: Viewport

Field type: Rectangle voption

Viewport in normalized screen coordinates (0-1). ValueNone = fullscreen.

Field type: Rectangle voption

Type something to start searching.