49 lines
1008 B
C
49 lines
1008 B
C
#ifndef CUBE3D_PROTO_H
|
|
# define CUBE3D_PROTO_H
|
|
|
|
// -------------------------------
|
|
// SRC
|
|
// -------------------------------
|
|
// cube3d.c
|
|
void destroy_mlx(void *param);
|
|
int shut_down();
|
|
|
|
|
|
// -------------------------------
|
|
// SRC/INIT
|
|
// -------------------------------
|
|
// init_struct.c
|
|
t_game *init_game(void);
|
|
// init_parsing.c
|
|
void init_parsing(int ac, char **av, t_game *game);
|
|
|
|
|
|
// -------------------------------
|
|
// SRC/PARSING
|
|
// -------------------------------
|
|
|
|
|
|
// -------------------------------
|
|
// SRC/HOOK
|
|
// -------------------------------
|
|
// key_hook.c
|
|
int keypress(int keycode, t_game *game);
|
|
int keyrelease(int keycode, t_game *game);
|
|
// key_do_action.c
|
|
void keypress_do_action(t_game *game);
|
|
// key_is_action_1.c
|
|
int is_esc(int *k_hook);
|
|
int is_go_left(int *k_hook);
|
|
int is_go_right(int *k_hook);
|
|
int is_go_forward(int *k_hook);
|
|
int is_go_backward(int *k_hook);
|
|
|
|
|
|
// -------------------------------
|
|
// SRC/DRAW
|
|
// -------------------------------
|
|
// draw.c
|
|
void draw(t_game *game);
|
|
|
|
#endif
|