-
Notifications
You must be signed in to change notification settings - Fork 0
/
Game.h
46 lines (41 loc) · 1.08 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef GAME_H
#define GAME_H
#include "Physics.h"
#include "Input.h"
#include "ShapeFactory.h"
#include "Designer.h"
#include "BodyLinker.h"
#include "Scoper.h"
class Game
{
private:
public:
Input input;
Physics physics;
Designer designer;
BodyLinker bodyLinker;
Scoper scoper;
static int frameRate, frameCount;
static void FrameRateThreadFun(void *arg);
bool MouseButtonEvent(int buttion, int action);
bool MouseWheelEvent(int delta);
bool KeyEvent(int key, int action);
void Test1();
void Test2();
void Test3();
void Test4();
void Test5();
void Test6();
void Test7();
void Initialize();
void Run();
public:
void PrepareRendering( Object *& target, Vector2D & shapeR );
void Rendering( Object * target, Vector2D & shapeR );
};
void KeyEventCallback(GLFWwindow* window, int key, int action, int my_none1 = 0, int my_none2 = 0);
void MouseButtonCallback( GLFWwindow * window, int button, int action, int my_none = 0 );
void MousePosCallback( GLFWwindow * window, double x, double y );
void MouseWheelCallback( GLFWwindow* window, double pos, double my_none );
extern Game game;
#endif