The game engine. Manages scenes, time, and the Audio, Video, Input and Text managers.
More...
#include <ugdk/base/engine.h>
The game engine. Manages scenes, time, and the Audio, Video, Input and Text managers.
Engine is a singleton. Use Engine::reference to get a pointer to an engine.
- See Also
- reference()
ugdk::Engine::~Engine |
( |
| ) |
|
|
inline |
Returns a reference to the Audio Manager.
- See Also
- AudioManager
uint32 ugdk::Engine::current_fps |
( |
| ) |
const |
|
inline |
Returns the current running FPS.
Returns the current scene.
bool ugdk::Engine::Initialize |
( |
const Configuration & |
configuration | ) |
|
Initializes the engine. Returns true if sucessful, false otherwise.
- Parameters
-
configuration | A Engine::Configuration struct with the planned configuration. |
bool ugdk::Engine::Initialize |
( |
| ) |
|
|
inline |
Initializes the engine. Calls the other Initialize method with all default arguments.
Returns a reference to the Input Manager.
- See Also
- InputManager
Returns a reference to the Path Manager.
- See Also
- PathManager
void ugdk::Engine::PopScene |
( |
| ) |
|
Puts a scene onto the scene list, on top.
- Parameters
-
scene | The scene to be put. |
void ugdk::Engine::quit |
( |
| ) |
|
|
inline |
Stops the engine and clears the scene list.
static Engine* ugdk::Engine::reference |
( |
| ) |
|
|
inlinestatic |
Returns a pointer to the current Engine. Creates an Engine if there isn't one.
void ugdk::Engine::Release |
( |
| ) |
|
Releases all the resouces allocated by the engine.
Returns a reference to the Resource Manager.
- See Also
- ResourceManager
void ugdk::Engine::Run |
( |
| ) |
|
Starts running the engine.
Returns a reference to the Text Manager.
- See Also
- TextManager
Returns a reference to the Time Handler.
- See Also
- TimeManager
Returns a reference to the Video Manager.
- See Also
- VideoManager
Returns the window dimensions.
The documentation for this class was generated from the following files: