Yet Another Game Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | List of all members
yage::Engine Class Reference

Main engine class that contains a systems, the main loop and the update function that updates all the systems. More...

#include <engine.h>

Inheritance diagram for yage::Engine:
yage::NonCopyable

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 Engineinstance ()
 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
 
NonCopyableoperator= (const NonCopyable &)=delete
 

Detailed Description

Main engine class that contains a systems, the main loop and the update function that updates all the systems.

Constructor & Destructor Documentation

yage::Engine::~Engine ( )

Member Function Documentation

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.

Engine & yage::Engine::instance ( )
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.


The documentation for this class was generated from the following files: