aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r4p1.le-101.fr>2020-03-11 18:06:17 +0100
committerRudy Bousset <rbousset@z2r4p1.le-101.fr>2020-03-11 18:06:17 +0100
commit7b61072321c71c1612a7b33d2e8d722a49c5bc99 (patch)
tree6369fc33d405013e40e152061bb080e6a5caabf8 /inc
parentPerformance (diff)
download42-cub3d-7b61072321c71c1612a7b33d2e8d722a49c5bc99.tar.gz
42-cub3d-7b61072321c71c1612a7b33d2e8d722a49c5bc99.tar.bz2
42-cub3d-7b61072321c71c1612a7b33d2e8d722a49c5bc99.tar.xz
42-cub3d-7b61072321c71c1612a7b33d2e8d722a49c5bc99.tar.zst
42-cub3d-7b61072321c71c1612a7b33d2e8d722a49c5bc99.zip
ca tue
Diffstat (limited to 'inc')
-rw-r--r--inc/cub3d.h2
-rw-r--r--inc/cub3d_structs.h4
2 files changed, 4 insertions, 2 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h
index ae353ae..016677a 100644
--- a/inc/cub3d.h
+++ b/inc/cub3d.h
@@ -78,6 +78,8 @@ void ft_sprite_width(t_cub *cl, t_sprite *sprite);
void ft_sprite_height(t_cub *cl, t_sprite *sprite);
void ft_calc_sprite(t_cub *cl);
void ft_draw_sprite(t_cub *cl, t_sprite *sprite);
+void ft_calc_trap(t_cub *cl);
+void ft_draw_traps(t_cub *cl, t_sprite *sprite);
void ft_draw_skybox(t_cub *cl);
void ft_suffer_animation(t_cub *cl);
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index 957d154..7a30d09 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -182,9 +182,9 @@ typedef struct s_map
size_t map_h;
size_t mapl_len;
int32_t sprite_nbr;
- int32_t sprite_order[12];
+ int32_t sprite_order[4096];
int32_t traps_nbr;
- int32_t traps_order[12];
+ int32_t traps_order[512];
size_t line_chk;
size_t map_start;
uint8_t isspawn;