diff options
author | salaaad2 <arthudurant263@gmail.com> | 2020-03-06 18:40:56 +0100 |
---|---|---|
committer | salaaad2 <arthudurant263@gmail.com> | 2020-03-06 18:40:56 +0100 |
commit | 04658c5e9a019917c3f8ffeb84562c328da0a885 (patch) | |
tree | 5a57411c8968aa57f4827aade5f1640fb68124fe /inc/cub3d_structs.h | |
parent | fuck (diff) | |
download | 42-cub3d-04658c5e9a019917c3f8ffeb84562c328da0a885.tar.gz 42-cub3d-04658c5e9a019917c3f8ffeb84562c328da0a885.tar.bz2 42-cub3d-04658c5e9a019917c3f8ffeb84562c328da0a885.tar.xz 42-cub3d-04658c5e9a019917c3f8ffeb84562c328da0a885.tar.zst 42-cub3d-04658c5e9a019917c3f8ffeb84562c328da0a885.zip |
ils se cachent (mal)
Diffstat (limited to 'inc/cub3d_structs.h')
-rw-r--r-- | inc/cub3d_structs.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index 102b985..7b86d09 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -89,6 +89,7 @@ typedef struct s_ray { uint16_t line_h; float wall_dist; + float wall_dist_tab[4096]; float x_ray_pos; float y_ray_pos; float x_ray_dir; @@ -116,6 +117,8 @@ typedef struct s_map char *sprite_path; char *mapl; char **map; + int32_t sprite_nbr; + int32_t sprite_order[12]; int8_t x_step; int8_t y_step; size_t map_w; @@ -142,7 +145,7 @@ typedef struct s_cub struct s_rgb f_rgb; struct s_rgb c_rgb; struct s_img tlist[5]; - struct s_sprite sprites; + struct s_sprite sprites[12]; } t_cub; # endif |