GameLoop.Run(CancellationToken) Method
Definition
Namespace: Brine2D.Engine
Starts the game loop on the current thread. Blocks until the loop exits.
Named Run rather than RunAsync intentionally: SDL3 requires all window
and event operations on a single thread, so this must be synchronous.
C#
public void Run(System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));
Parameters
cancellationToken System.Threading.CancellationToken