Table of Contents

Interface ILayerRenderer

Namespace
Gloam.Core.Interfaces
Assembly
Gloam.Core.dll

Interface for rendering layers in a prioritized order within the game loop

public interface ILayerRenderer

Properties

IsVisible

Gets or sets whether this layer is visible and should be rendered

bool IsVisible { get; set; }

Property Value

bool

Name

Gets the name of this layer renderer for debugging and identification purposes.

string Name { get; }

Property Value

string

Priority

Gets the priority of this layer renderer. Lower values render first.

int Priority { get; }

Property Value

int

Methods

RenderAsync(RenderLayerContext, CancellationToken)

Renders the layer with the provided context

ValueTask RenderAsync(RenderLayerContext context, CancellationToken ct = default)

Parameters

context RenderLayerContext

The rendering context containing renderer, input, and frame information

ct CancellationToken

Cancellation token to cancel the rendering operation

Returns

ValueTask

A ValueTask representing the asynchronous rendering operation