forked from jbikker/bvh_article
-
Notifications
You must be signed in to change notification settings - Fork 0
/
basics.h
24 lines (21 loc) · 773 Bytes
/
basics.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
#pragma once
namespace Tmpl8
{
class BasicBVHApp : 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 button ) { /* implement if you want to detect mouse button presses */ }
void MouseDown( int button ) { /* implement if you want to detect mouse button presses */ }
void MouseMove( int x, int y ) { mousePos.x = x, mousePos.y = y; }
void MouseWheel( float y ) { /* implement if you want to handle the mouse wheel */ }
void KeyUp( int key ) { /* implement if you want to handle keys */ }
void KeyDown( int key ) { /* implement if you want to handle keys */ }
// data members
int2 mousePos;
};
} // namespace Tmpl8