Table of Contents

Interface ITransition

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

Represents a visual transition effect between scenes

public interface ITransition

Properties

Duration

Gets the total duration of the transition

TimeSpan Duration { get; }

Property Value

TimeSpan

IsComplete

Gets whether the transition has completed

bool IsComplete { get; }

Property Value

bool

Name

Gets the name of the transition

string Name { get; }

Property Value

string

Progress

Gets the current progress of the transition (0.0 to 1.0)

float Progress { get; }

Property Value

float

Methods

RenderAsync(RenderLayerContext, CancellationToken)

Renders the transition effect

ValueTask RenderAsync(RenderLayerContext context, CancellationToken ct = default)

Parameters

context RenderLayerContext

The render layer context

ct CancellationToken

Cancellation token

Returns

ValueTask

Reset()

Resets the transition to its initial state

void Reset()

Start()

Starts the transition

void Start()

Update(TimeSpan)

Updates the transition with the elapsed time

void Update(TimeSpan deltaTime)

Parameters

deltaTime TimeSpan

Time elapsed since last update