Header menu logo Mibo.Raylib

Renderer2D Module

Convenience constructors for Renderer2D.

Functions and values

Function or value Description

create view

Full Usage: create view

Parameters:
    view : GameContext -> 'Model -> RenderBuffer2D -> unit - The view function that populates the render buffer each frame. Receives the game context, current model, and a mutable buffer.

Returns: IRenderer<'Model>

Creates a renderer with default configuration (no post-processing, black clear color).

view : GameContext -> 'Model -> RenderBuffer2D -> unit

The view function that populates the render buffer each frame. Receives the game context, current model, and a mutable buffer.

Returns: IRenderer<'Model>

createWith config view

Full Usage: createWith config view

Parameters:
    config : Renderer2DConfig - The renderer configuration.
    view : GameContext -> 'Model -> RenderBuffer2D -> unit - The view function that populates the render buffer each frame. Receives the game context, current model, and a mutable buffer.

Returns: IRenderer<'Model>

Creates a renderer with custom configuration.

config : Renderer2DConfig

The renderer configuration.

view : GameContext -> 'Model -> RenderBuffer2D -> unit

The view function that populates the render buffer each frame. Receives the game context, current model, and a mutable buffer.

Returns: IRenderer<'Model>

Type something to start searching.