Yet Another Game Engine
|
Main engine class that contains a systems, the main loop and the update function that updates all the systems. More...
#include <engine.h>
Public Member Functions | |
~Engine () | |
void | init () |
Initialize window and other aspects of the engine. More... | |
void | mainLoop () |
Main game loop of the engine. More... | |
void | update () |
Updates the systems. More... | |
void | addSpace (std::unique_ptr< Space > space) |
Add spaces to the engine. More... | |
Static Public Member Functions | |
static Engine & | instance () |
Returns the instance of the engine, as there is only one instance of the engine. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from yage::NonCopyable | |
NonCopyable ()=default | |
~NonCopyable ()=default | |
NonCopyable (const NonCopyable &)=delete | |
NonCopyable & | operator= (const NonCopyable &)=delete |
Main engine class that contains a systems, the main loop and the update function that updates all the systems.
yage::Engine::~Engine | ( | ) |
void yage::Engine::addSpace | ( | std::unique_ptr< Space > | space | ) |
Add spaces to the engine.
void yage::Engine::init | ( | ) |
Initialize window and other aspects of the engine.
|
static |
Returns the instance of the engine, as there is only one instance of the engine.
void yage::Engine::mainLoop | ( | ) |
Main game loop of the engine.
void yage::Engine::update | ( | ) |
Updates the systems.