Anvil Engine
Loading...
Searching...
No Matches
IGame.h
Go to the documentation of this file.
1
#pragma once
2
#include "
ACore.h
"
3
#include "
AMath.h
"
4
5
class
AEngine
;
6
7
class
IGame
8
{
9
public
:
15
virtual
~IGame
()
16
{
17
// Empty destructor implementation as the interface doesn't own resources
18
}
19
24
virtual
void
OnInit
(
AEngine
* engine) = 0;
25
30
virtual
void
OnUpdate
(
float
dt
) = 0;
31
36
virtual
void
OnShutdown
() = 0;
37
42
virtual
glm::mat4
GetViewMatrix
() = 0;
43
};
44
45
// Function pointer type for the DLL export
46
typedef
IGame
* (*CreateGameFn)();
dt
float dt
Definition
Main.cpp:10
ACore.h
AMath.h
AEngine
The main engine class that manages the application lifecycle, rendering, entities,...
Definition
AEngine.h:25
IGame
Definition
IGame.h:8
IGame::GetViewMatrix
virtual glm::mat4 GetViewMatrix()=0
IGame::OnUpdate
virtual void OnUpdate(float dt)=0
IGame::OnInit
virtual void OnInit(AEngine *engine)=0
IGame::~IGame
virtual ~IGame()
Definition
IGame.h:15
IGame::OnShutdown
virtual void OnShutdown()=0
Anvil_SDK
IGame.h
Generated by
1.16.1