#include <CGame.h>
|
| | CGame ()=default |
| virtual | ~CGame ()=default |
| virtual void | OnInit (AEngine *engine) override |
| | Initialize the game scene with entities, physics, and camera.
|
| virtual void | OnUpdate (float dt) override |
| | Update function called every frame to handle game logic and player movement.
|
| virtual void | OnShutdown () override |
| virtual glm::mat4 | GetViewMatrix () override |
| virtual | ~IGame () |
◆ CGame()
◆ ~CGame()
| virtual CGame::~CGame |
( |
| ) |
|
|
virtualdefault |
◆ GetViewMatrix()
| virtual glm::mat4 CGame::GetViewMatrix |
( |
| ) |
|
|
inlineoverridevirtual |
Get the current view matrix for rendering.
- Returns
- glm::mat4 representing the current view transformation matrix
Implements IGame.
◆ OnInit()
| void CGame::OnInit |
( |
AEngine * | engine | ) |
|
|
overridevirtual |
Initialize the game scene with entities, physics, and camera.
- Parameters
-
| engine | Pointer to the game engine instance |
Implements IGame.
◆ OnShutdown()
| void CGame::OnShutdown |
( |
| ) |
|
|
overridevirtual |
Shutdown function for the CGame class This function is responsible for cleaning up resources when the game is shutting down Specifically, it handles the deallocation of the camera object
Implements IGame.
◆ OnUpdate()
| void CGame::OnUpdate |
( |
float | dt | ) |
|
|
overridevirtual |
Update function called every frame to handle game logic and player movement.
- Parameters
-
| dt | Delta time since last frame, used for frame-rate independent movement |
Implements IGame.
The documentation for this class was generated from the following files: