81template <
class T,
class... Args>
87[[deprecated(
"Use setWork(std::shared_ptr<Work>) instead")]]
Background job which stays part of the main loop independent of the active jngl::Work.
Active state of the game, e.g. a menu or the game itself.
virtual void onPauseEvent()
Gets called when the main window loses focus or the app is put in the background.
virtual void onQuitEvent()
Gets called when the user closes the main window or quit() has been called.
virtual void onControllerBack()
Gets called when the "Back" button is pressed on any connected controller (Android only)
virtual void onLoad()
Gets called when the Work is activated by App::mainLoop()
virtual void onBackEvent()
Gets called on Android's "back" gesture or when the Esc key is pressed.
Contains jngl::Job class and related functions.
void resetFrameLimiter()
Resets the automatic frame limiter of App::mainLoop().
std::shared_ptr< Work > getWork()
Returns the current active Work or nullptr if none has been set.
void setWork(std::shared_ptr< Work > work)
Sets the passed Work to be active in App::mainLoop()