From 12faf5456d0f2356b6406a0d74ed4559c4a85a41 Mon Sep 17 00:00:00 2001 From: Rudy Bousset <rbousset@z2r4p3.le-101.fr> Date: Thu, 23 Jan 2020 19:41:24 +0100 Subject: ok but might redo ft_split --- inc/cub3d.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'inc/cub3d.h') diff --git a/inc/cub3d.h b/inc/cub3d.h index 459bbb7..d5ef69e 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -13,14 +13,22 @@ typedef struct s_win typedef struct s_cub { - char coolcub; + char *north_path; + char *south_path; + char *west_path; + char *east_path; + char *sprite_path; + int f_color; + int c_color; } t_cub; t_cub *ft_init_cub(void); t_win *ft_init_win(void); -void ft_parse_map(t_cub *clist); +void ft_parse_map(t_win *wlist, t_cub *clist, const char *map_path); int ft_key_event(int keycode, void *param); -void ft_exit(uint8_t exit_code); +int ft_exit(uint8_t exit_code); void ft_drawsquare(t_win *wlist, t_cub *clist, int a, int b); +int ft_get_res(int fd, t_win *wlist); +int ft_map_error(unsigned int line); #endif -- cgit v1.2.3