diff options
author | Rudy Bousset <rbousset@z3r8p1.le-101.fr> | 2020-02-13 19:42:05 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z3r8p1.le-101.fr> | 2020-02-13 19:42:05 +0100 |
commit | e29dd2fa3688e1e96a25af3b651da574af08aa90 (patch) | |
tree | cb6486fc91f1b93e61e4dcda25d359095e6aa108 /inc/cub3d_structs.h | |
parent | Better code structure (diff) | |
download | 42-cub3d-e29dd2fa3688e1e96a25af3b651da574af08aa90.tar.gz 42-cub3d-e29dd2fa3688e1e96a25af3b651da574af08aa90.tar.bz2 42-cub3d-e29dd2fa3688e1e96a25af3b651da574af08aa90.tar.xz 42-cub3d-e29dd2fa3688e1e96a25af3b651da574af08aa90.tar.zst 42-cub3d-e29dd2fa3688e1e96a25af3b651da574af08aa90.zip |
Splited structs
Diffstat (limited to '')
-rw-r--r-- | inc/cub3d_structs.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index f40a438..08fc814 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -68,11 +68,7 @@ typedef struct s_ray uint8_t hit; } t_ray; -/* typedef struct s_map */ -/* { */ -/* } t_map; */ - -typedef struct s_cub +typedef struct s_map { char *no_tex_path; char *so_tex_path; @@ -89,9 +85,14 @@ typedef struct s_cub size_t map_start; uint8_t isspawn; uint8_t scale; +} t_map; + +typedef struct s_cub +{ uint8_t minimap; struct s_win *wlist; struct s_player *plist; + struct s_map *mlist; struct s_ray rlist; struct s_img img; struct s_rgb f_rgb; |