Main engine class. More...

#include <Engine.hpp>

+ Collaboration diagram for turbo::Engine:

Public Member Functions

 Engine ()
 Initialize a new engine. More...
 
void start_window (const char *win_name, unsigned short width, unsigned short height)
 
void stop_window ()
 
void set_window_title (const char *title)
 
void set_window_size (unsigned short width, unsigned short height)
 
void loop ()
 Starts main loop.
 
void force_render ()
 Force the engine to render as soon as possible.
 
void force_logic ()
 Force the engine to tick as soon as possible.
 
void close ()
 Stops the main loop and close the window.
 
void on_update_tick ()
 
void on_render_tick ()
 
 ONLYIMGUI (debug::EngineDebug debug=debug::EngineDebug(this))
 

Public Attributes

SceneManager scene_manager
 
Event update_tick = Event<>()
 
Event render_tick = Event<>()
 
Logger logger = Logger("Turbo Engine")
 

Static Public Attributes

static const std::string version = "0.2"
 Engine version. More...
 
static Engineengine = nullptr
 
static Input input = Input()
 

Detailed Description

Main engine class.

Constructor & Destructor Documentation

◆ Engine()

turbo::Engine::Engine ( )

Initialize a new engine.

Note
Only one instance should be used at a time
Parameters
win_nameName of the window
widthwidth of the window
heightheight of the window

Member Data Documentation

◆ version

const std::string turbo::Engine::version = "0.2"
inlinestatic

Engine version.

Note
This string is hard writter read only

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