|
eduEngine 1.0
Course framework for DA376B
|
Main engine class handling SDL, OpenGL, ImGui initialization and the main loop. More...
#include <Engine.hpp>
Public Member Functions | |
| Engine () | |
| ~Engine () | |
| bool | init (const char *title, int width, int height) |
| Initialize the engine. | |
| void | run (std::unique_ptr< SceneBase > game) |
| Start the main loop. | |
| void | shutdown () |
| Clean up and close the engine. | |
| SDL_Window * | window () const |
| Get SDL window pointer. | |
Main engine class handling SDL, OpenGL, ImGui initialization and the main loop.
| eeng::Engine::Engine | ( | ) |
Constructor
| eeng::Engine::~Engine | ( | ) |
Destructor, calls shutdown()
| bool eeng::Engine::init | ( | const char * | title, |
| int | width, | ||
| int | height ) |
Initialize the engine.
| title | Window title |
| width | Window width |
| height | Window height |
| void eeng::Engine::run | ( | std::unique_ptr< SceneBase > | game | ) |
Start the main loop.
| game | Unique pointer to the initial game scene |
|
inline |
Get SDL window pointer.