-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGameState.cpp
More file actions
65 lines (42 loc) · 1.2 KB
/
GameState.cpp
File metadata and controls
65 lines (42 loc) · 1.2 KB
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
47
48
49
50
51
52
53
54
55
56
57
// Brett Layman
// 2/20/2018
#include "GameState.h"
// initialization of static GameState object variables
float GameState::orthoWidth = 64;
float GameState::orthoHeight = 48;
// variables for storing camera position
float GameState::vx = 0;
float GameState::vy = 0;
float GameState::vz = 20;
float GameState::vxPrev;
float GameState::vyPrev;
// scale
float GameState::sx = 1;
float GameState::sy = 1;
float GameState::sz = 1;
// rotate
float GameState::rx = 0;
float GameState::ry = 0;
float GameState::rz = 0;
// translate
float GameState::tx = 0;
float GameState::ty = 0;
float GameState::tz = 0;
// shape creation flags
bool GameState::createSquare = false;
bool GameState::createCircle = false;
bool GameState::createTriangle = false;
bool GameState::createCustom = false;
// selection flags
bool GameState::selected = false;
bool GameState::foundSelected = false;
bool GameState::changedMode = false;
Mode GameState::mode = stamp ;
SetColor GameState::setColor = dont;
// mouse selection flags
double GameState::startDragX = 0;
double GameState::startDragY = 0;
double GameState::finishDragX = 0;
double GameState::finishDragY = 0;
bool GameState::mouseDragged = false;
bool GameState::persp = false;