|
JNGL
Easy to use cross-platform 2D game library
|
Contains jngl::Scene class and related functions. More...
#include "work.hpp"Go to the source code of this file.
Namespaces | |
| namespace | jngl |
| JNGL's main namespace. | |
Typedefs | |
| using | Scene = Work |
| Because it's more intuitive, jngl::Scene is the new name for jngl::Work. | |
Functions | |
| std::shared_ptr< Scene > | getActiveScene () |
| Returns the currently active Scene. | |
| void | setScene (std::shared_ptr< Scene >) |
| Sets the passed Scene to be active in the main loop for the next frame. | |
| template<class T , class... Args> | |
| T & | setScene (Args &&... args) |
| The same as setScene(std::shared_ptr<Scene>) but creates the Scene for you. | |
| std::shared_ptr< Scene > | getNextScene () |
| Returns the Scene that will be active in the next frame. | |
Contains jngl::Scene class and related functions.
Definition in file Scene.hpp.