|
Mountain
1.0.0
Simple C++ 2D Game Framework
|
Public Member Functions | |
| Game (const std::string &windowTitle, Vector2i windowSize={ 1280, 720 }) | |
| void | Play () |
| virtual void | Initialize () |
| To be called by the user when starting execution. Empty by default, can be overridden to initialize custom variables or fields. | |
| void | MainLoop () |
| Called once. Runs until the window is closed and calls all the necessary functions of the game. | |
| bool_t | NextFrame () |
| virtual void | Shutdown () |
| To be called by the user when closing the window. Empty by default, can be overridden to destroy custom variables or fields. | |
| virtual void | Update ()=0 |
| Called once each frame before Game::Render. To be overridden by the user. | |
| virtual void | Render ()=0 |
| Called once each frame after Game::Update. To be overridden by the user. | |