aboutsummaryrefslogtreecommitdiffstats
path: root/inc/cub3d.h
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-01-23 19:41:24 +0100
committerRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-01-23 19:41:24 +0100
commit12faf5456d0f2356b6406a0d74ed4559c4a85a41 (patch)
treec5e352d3471d68ea99a90b60e282f6af65518a19 /inc/cub3d.h
parentI got colors (diff)
download42-cub3d-12faf5456d0f2356b6406a0d74ed4559c4a85a41.tar.gz
42-cub3d-12faf5456d0f2356b6406a0d74ed4559c4a85a41.tar.bz2
42-cub3d-12faf5456d0f2356b6406a0d74ed4559c4a85a41.tar.xz
42-cub3d-12faf5456d0f2356b6406a0d74ed4559c4a85a41.tar.zst
42-cub3d-12faf5456d0f2356b6406a0d74ed4559c4a85a41.zip
ok but might redo ft_split
Diffstat (limited to '')
-rw-r--r--inc/cub3d.h14
1 files changed, 11 insertions, 3 deletions
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