Update Flow
Control the update() loop and query information about it.
Summary
Functions
| Name | |
|---|---|
| void | start() Starts the update() loop.  | 
| void | stop() Stops the update() loop.  | 
| void | pause() Pauses the update() loop.  | 
| void | resume() Resumes the update() loop if it was paused with pause().  | 
| bool | is_paused() const Returns true iff the update() loop is currently paused.  | 
Functions
start()
voidstart();
Starts the update() loop.
update() will be called repeatedly, until you close the window or call stop().
stop()
voidstop();
Stops the update() loop.
This is the programatic equivalent of a user closing the window.
pause()
voidpause();
Pauses the update() loop.
No update() will be called, until you call resume(). User inputs are still processed.
resume()
voidresume();
Resumes the update() loop if it was paused with pause().
It has no effect if the loop was already playing.
is_paused()
boolis_paused() const;
Returns true iff the update() loop is currently paused.
Updated on 2024 October 24