-
Notifications
You must be signed in to change notification settings - Fork 0
/
cam.h
45 lines (33 loc) · 815 Bytes
/
cam.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
/*===========================================*
* Engine Camera *
*-------------------------------------------*
* Here *must* be written all game game *
* used by different game modes *
*===========================================*
*/
#ifndef CAM_H
#define CAM_H
#include <cmath>
#include <GL/glut.h>
#define PI 3.14159265359
enum PLAYER_CAMERA_STYLE {
CAMERA_STYLE_RE_1 = 0,
CAMERA_STYLE_RE_2 = 1,
CAMERA_STYLE_SPECIAL = 2,
CAMERA_STYLE_SPECIAL_2 = 3,
CAMERA_STYLE_SPECIAL_3 = 4,
CAMERA_STYLE_SEL_CHAR = 5
};
class cam {
public:
cam();
~cam();
void camList(unsigned int camNum, float x, float y, float z, float angle);
private:
float camX;
float camZ;
float distX;
float distZ;
float distY;
};
#endif