Anvil Engine
Loading...
Searching...
No Matches
CGame Class Reference

#include <CGame.h>

Inheritance diagram for CGame:
IGame

Public Member Functions

 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
Public Member Functions inherited from IGame
virtual ~IGame ()

Constructor & Destructor Documentation

◆ CGame()

CGame::CGame ( )
default

◆ ~CGame()

virtual CGame::~CGame ( )
virtualdefault

Member Function Documentation

◆ 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
enginePointer 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
dtDelta time since last frame, used for frame-rate independent movement

Implements IGame.


The documentation for this class was generated from the following files: