JNGL
Easy to use cross-platform 2D game library
Loading...
Searching...
No Matches
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.

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