Turbo Engine 0.3
A C++ game engine using Allegro 5
turbo::Scene Class Reference

Basic scene class. More...

#include <Scene.hpp>

Collaboration diagram for turbo::Scene:

Public Member Functions

virtual void load ()
 Called when the scene is loading.
virtual void unload ()
 Called when the scene is unloading.
virtual void update (int delta_time) final
 Called on every logic frame.
virtual void render () final
 Called on every render frame.
GameObjectget_root_gameobject () const

Protected Attributes

GameObjectroot_gameobject
 Root GameObject of the scene objects hierarchy.

Detailed Description

Basic scene class.

Member Function Documentation

◆ get_root_gameobject()

GameObject * turbo::Scene::get_root_gameobject ( ) const
inline

◆ load()

virtual void turbo::Scene::load ( )
inlinevirtual

Called when the scene is loading.

◆ render()

void turbo::Scene::render ( )
finalvirtual

Called on every render frame.

◆ unload()

virtual void turbo::Scene::unload ( )
inlinevirtual

Called when the scene is unloading.

◆ update()

void turbo::Scene::update ( int delta_time)
finalvirtual

Called on every logic frame.

Parameters
delta_timemilliseconds since the last call

Member Data Documentation

◆ root_gameobject

GameObject* turbo::Scene::root_gameobject
protected

Root GameObject of the scene objects hierarchy.


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