Skip to main content

Update Flow

Control the update() loop and query information about it.

Summary

Functions

Name
voidstart()
Starts the update() loop.
voidstop()
Stops the update() loop.
voidpause()
Pauses the update() loop.
voidresume()
Resumes the update() loop if it was paused with pause().
boolis_paused() const
Returns true iff the update() loop is currently paused.

Functions

start()

void start();

Starts the update() loop.

update() will be called repeatedly, until you close the window or call stop().

stop()

void stop();

Stops the update() loop.

This is the programatic equivalent of a user closing the window.

pause()

void pause();

Pauses the update() loop.

No update() will be called, until you call resume(). User inputs are still processed.

resume()

void resume();

Resumes the update() loop if it was paused with pause().

It has no effect if the loop was already playing.

is_paused()

bool is_paused() const;

Returns true iff the update() loop is currently paused.


Updated on 2024 October 24