-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathevent.h
52 lines (39 loc) · 927 Bytes
/
event.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
#ifndef EVENT_H
#define EVENT_H
#include <SDL/SDL.h>
extern float theta;
extern float phi;
extern vec3 mypos;
extern float light[4];
extern float light_color[4];
extern float shininess;
extern float diffuse[4];
extern float ambient[4];
extern float specular[4];
extern char hide_text;
extern char use_texture;
extern char use_fog;
extern char use_heightmap;
extern char use_sky;
extern char show_grid;
extern char show_map;
extern char wireframe;
extern char fps_str[8];
extern char status_str[3][256];
extern float map_pos_u;
extern float map_pos_v;
extern unsigned map_len_u;
extern unsigned map_len_v;
extern unsigned screen_map_len;
extern rgba* ruinas_map;
extern float minha_altura;
extern int altura_terreno;
void update_map_pos();
void init_event_keys();
void update_status_str();
void update_fps_str();
void event_handler(SDL_Event ev);
void toggle();
void model(float dt);
void physics(float dt);
#endif