aboutsummaryrefslogtreecommitdiffstats
path: root/inc/cub3d.h
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-01-26 22:28:11 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-01-26 22:28:11 +0100
commit29b45c0bbdcc3a8eb980d6fdc65efa09382c0ede (patch)
treea6060e809807384d96099df120d0c423d1da09b1 /inc/cub3d.h
parentBetter error management (diff)
download42-cub3d-29b45c0bbdcc3a8eb980d6fdc65efa09382c0ede.tar.gz
42-cub3d-29b45c0bbdcc3a8eb980d6fdc65efa09382c0ede.tar.bz2
42-cub3d-29b45c0bbdcc3a8eb980d6fdc65efa09382c0ede.tar.xz
42-cub3d-29b45c0bbdcc3a8eb980d6fdc65efa09382c0ede.tar.zst
42-cub3d-29b45c0bbdcc3a8eb980d6fdc65efa09382c0ede.zip
Can't believe it
Diffstat (limited to '')
-rw-r--r--inc/cub3d.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h
index ead1b52..7df93ad 100644
--- a/inc/cub3d.h
+++ b/inc/cub3d.h
@@ -28,6 +28,7 @@ typedef struct s_cub
char *sprite_path;
int f_color;
int c_color;
+ char **map;
} t_cub;
typedef struct s_win
@@ -44,11 +45,12 @@ t_cub *ft_init_cub(void);
void ft_parse_map(const char *map_path, t_win *wlist);
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);
+void ft_drawsquare(int a, int b, int rgb, t_win *wlist);
int ft_get_res(int fd, t_win *wlist);
int ft_get_tex(int fd, t_win *wlist);
int ft_get_sprite_tex(int fd, t_win *wlist);
int ft_get_colors(int fd, t_win *wlist);
+int ft_get_map(int fd, t_win *wlist);
void ft_check_empty_line(int fd,
unsigned int linum,
t_win *wlist);