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
Name
Gets the name of this layer renderer for debugging and identification purposes.
string Name { get; }
Property Value
Priority
Gets the priority of this layer renderer. Lower values render first.
int Priority { get; }
Property Value
Methods
RenderAsync(RenderLayerContext, CancellationToken)
Renders the layer with the provided context
ValueTask RenderAsync(RenderLayerContext context, CancellationToken ct = default)
Parameters
context
RenderLayerContextThe rendering context containing renderer, input, and frame information
ct
CancellationTokenCancellation token to cancel the rendering operation
Returns
- ValueTask
A ValueTask representing the asynchronous rendering operation