YAGE  v0.1.4.0
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>

Public Member Functions

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 addSystem (System *system)
 Adds a system 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...
 

Detailed Description

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

Member Function Documentation

void yage::Engine::addSystem ( System system)

Adds a system 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: