Application class that manages the game loop.
More...
#include <Application.hpp>
|
void | StartUp () |
| Start the application.
|
|
void | Shutdown () |
| Shutdown the application.
|
|
void | Input (float deltaTime) |
| Handle input.
|
|
void | Update (float deltaTime) |
| Update the game state.
|
|
void | Render () |
| Render the game.
|
|
void | Loop (float targetFPS) |
| Main game loop.
|
|
void | StartScene (std::shared_ptr< Scene > scene) |
| Set the title of the window.
|
|
Application class that manages the game loop.
◆ Input()
void Application::Input |
( |
float | deltaTime | ) |
|
Handle input.
- Parameters
-
deltaTime | Time since last frame |
◆ Loop()
void Application::Loop |
( |
float | targetFPS | ) |
|
Main game loop.
- Parameters
-
targetFPS | Target frames per second |
◆ StartScene()
void Application::StartScene |
( |
std::shared_ptr< Scene > | scene | ) |
|
Set the title of the window.
- Parameters
-
◆ Update()
void Application::Update |
( |
float | deltaTime | ) |
|
Update the game state.
- Parameters
-
deltaTime | Time since last frame |
The documentation for this struct was generated from the following file: