-
Notifications
You must be signed in to change notification settings - Fork 5
/
game.h
28 lines (24 loc) · 887 Bytes
/
game.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Template, 2024 IGAD Edition
// Get the latest version from: https://github.com/jbikker/tmpl8
// IGAD/NHTV/BUAS/UU - Jacco Bikker - 2006-2024
#pragma once
namespace Tmpl8
{
class Game : public TheApp
{
public:
// game flow methods
void Init();
void Tick( float deltaTime );
void Shutdown() { /* implement if you want to do something on exit */ }
// input handling
void MouseUp( int ) { /* implement if you want to detect mouse button presses */ }
void MouseDown( int ) { /* implement if you want to detect mouse button presses */ }
void MouseMove( int x, int y ) { mousePos.x = x, mousePos.y = y; }
void MouseWheel( float ) { /* implement if you want to handle the mouse wheel */ }
void KeyUp( int ) { /* implement if you want to handle keys */ }
void KeyDown( int ) { /* implement if you want to handle keys */ }
// data members
int2 mousePos;
};
} // namespace Tmpl8