From dada4b12f07388262729a1b979e53e28bfb79db3 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Thu, 23 Jan 2020 18:46:55 +0100 Subject: Nice squares --- inc/cub3d.h | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'inc') diff --git a/inc/cub3d.h b/inc/cub3d.h index ca12f8a..fa6a08f 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -1,22 +1,26 @@ #ifndef CUB3D_H #define CUB3D_H -typedef struct s_winlist +#include + +typedef struct s_win { void *wlx; void *winptr; int x_size; int y_size; -} t_winlist; +} t_win; -typedef struct s_cublist +typedef struct s_cub { char coolcub; -} t_cublist; +} t_cub; -t_cublist *ft_init_cublist(void); -t_winlist *ft_init_winlist(void); -void ft_parse_map(t_cublist *clist); +t_cub *ft_init_cub(void); +t_win *ft_init_win(void); +void ft_parse_map(t_cub *clist); int ft_key_event(int keycode, void *param); +void ft_exit(uint8_t exit_code); +void ft_drawsquare(t_win *wlist, int a, int b); #endif -- cgit v1.2.3