-
Notifications
You must be signed in to change notification settings - Fork 0
/
controls.h
executable file
·66 lines (62 loc) · 1.28 KB
/
controls.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#define ZOOM_STEP 0.01
#define SAIL_ROTATION_INC 3.0
#define RING_ROTATION_INC 1.0
#define INIT_ZOOM 1.0
#define INIT_TESSELATION 64
#define MAX_TESSELATION 300
#define MIN_TESSELATION 8
#define MIN_ZOOM 0.2
#define MAX_SPEED 6.0
#define MIN_SPEED 0.5
#define SPEED_INC 0.5
void initVariables();
void mouseMove(int, int);
void mouse(int, int, int, int);
void rotateCamera();
void tesselation(char);
void debugging();
void wireframe();
void animate();
void normals();
void splitScreen();
void shadows();
void updateAnimation(float);
void idle();
void shootARocket(char);
void endApplication();
void keyboard(unsigned char, int, int);
void keyboardSpecial(int, int, int);
int currentTesselation();
int debugNormals();
int debugAxis();
int overlapShadow();
/*Global variables for controlling
the camera, mouse and debugging
features.*/
struct{
int tesselation;
int wireframe;
int debugging;
int animation;
float animateRing;
float animateSail;
int slowDown;
int speedUp;
int showNormals;
int overlappingShadows;
int split;
int windowID;
}global;
struct{
float rotatex;
float rotatey;
float changex;
float changey;
float zoom;
float zoomY;
int updateRotation;
}cameraVar;
struct{
int holdingLeft;
int holdingRight;
}mouseVar;