-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathcub3d.h
73 lines (57 loc) · 2.01 KB
/
cub3d.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
67
68
69
70
71
72
73
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* cub3d.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ncolomer <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/10/29 12:44:11 by ncolomer #+# #+# */
/* Updated: 2019/11/10 18:18:34 by ncolomer ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef CUB3D_H
# define CUB3D_H
# include "engine/engine.h"
# include "config/config.h"
# include "utils/utils.h"
# define LEFT_CLICK 1
# define RIGHT_CLICK 2
# define MIDDLE_CLICK 3
# define SCROLL_UP 4
# define SCROLL_DOWN 5
# define KEY_1 18
# define KEY_2 19
# define KEY_3 20
# define KEY_4 21
# define KEY_Q 12
# define KEY_W 13
# define KEY_E 14
# define KEY_R 15
# define KEY_A 0
# define KEY_S 1
# define KEY_D 2
# define KEY_I 34
# define KEY_O 31
# define KEY_P 35
# define KEY_J 38
# define KEY_K 40
# define KEY_L 37
# define KEY_LEFT 123
# define KEY_RIGHT 124
# define KEY_FORWARD 126
# define KEY_BACKWARD 125
# define KEY_TAB 48
# define KEY_MAJ 257
# define KEY_ESC 53
# define KEY_TAB 48
int exit_error(t_game *game, char const *str);
void init_game(t_game *game, int save_opt);
int finish_init(t_game *game);
int exit_game(t_game *game, int code);
int screenshot(t_game *game);
int exit_hook(t_game *game);
int key_press(int keycode, t_game *game);
int key_release(int keycode, t_game *game);
int main_loop(t_game *game);
int save_bmp(t_game *game);
#endif