JNGL
Easy to use cross-platform 2D game library
|
Go to the source code of this file.
Classes | |
class | Work |
Active state of the game, e.g. a menu or the game itself. More... | |
Namespaces | |
namespace | jngl |
JNGL's main namespace. | |
Functions | |
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 the main loop. | |
template<class T , class... Args> | |
void | setWork (Args &&... args) |
The same as setWork(std::shared_ptr<Work>) but creates the Work for you. | |
void | setWork (Work *) |
void | resetFrameLimiter () |
Resets the automatic frame limiter of App::mainLoop(). | |