#ifndef CUB3D_H #define CUB3D_H #include #ifndef FT_W_KEY #define FT_W_KEY 13 #endif #ifndef FT_A_KEY #define FT_A_KEY 0 #endif #ifndef FT_S_KEY #define FT_S_KEY 1 #endif #ifndef FT_D_KEY #define FT_D_KEY 2 #endif #ifndef FT_ESC_KEY #define FT_ESC_KEY 53 #endif typedef struct s_cub { char *no_tex_path; char *so_tex_path; char *ea_tex_path; char *we_tex_path; char *sprite_path; int f_color; int c_color; } t_cub; typedef struct s_win { void *wlx; void *winptr; int x_size; int y_size; struct s_cub *clist; } t_win; t_win *ft_init_win(void); t_cub *ft_init_cub(void); void ft_parse_map(t_win *wlist, const char *map_path); int ft_key_event(int keycode, void *param); int ft_exit(uint8_t exit_code, t_win *wlist); void ft_drawsquare(t_win *wlist, int a, int b); int ft_get_res(int fd, t_win *wlist); int ft_get_tex(int fd, t_win *wlist); void ft_free_words(char **words); int ft_map_error(unsigned int line, t_win *wlist); int ft_init_winlx(t_win *wlist); #endif