Classes | Namespaces | Functions
work.hpp File Reference
#include "job.hpp"
#include <memory>
Include dependency graph for work.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  Work
 Active state of the game, e.g. a menu or the game itself. More...


 JNGL's main namespace.


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()
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(). More...