|
GPR5100 - Rollback
|
Engine is a class that manages the layer between the system and the application and runs the game loop. More...
#include <engine.h>
Public Member Functions | |
| void | Run () |
| Run is a method that runs the Engine game loop. | |
| void | RegisterApp (App *app) |
| void | RegisterSystem (SystemInterface *) |
| void | RegisterOnEvent (OnEventInterface *) |
| void | RegisterDraw (DrawInterface *) |
| void | RegisterDrawImGui (DrawImGuiInterface *) |
Protected Member Functions | |
| void | Init () |
| void | Update (sf::Time dt) const |
| void | Destroy () |
Protected Attributes | |
| std::vector< SystemInterface * > | systems_ |
| std::vector< OnEventInterface * > | eventInterfaces_ |
| std::vector< DrawInterface * > | drawInterfaces_ |
| std::vector< DrawImGuiInterface * > | drawImGuiInterfaces_ |
| std::unique_ptr< sf::RenderWindow > | window_ |
Engine is a class that manages the layer between the system and the application and runs the game loop.