From 5a706fdfcbf801c72f4fb31ceee8dbef8b02e160 Mon Sep 17 00:00:00 2001
From: JozanLeClerc <bousset.rudy@gmail.com>
Date: Mon, 23 Mar 2020 19:36:30 +0100
Subject: Almost there

---
 inc/cub3d.h         | 2 +-
 inc/cub3d_structs.h | 8 ++++++--
 2 files changed, 7 insertions(+), 3 deletions(-)

(limited to 'inc')

diff --git a/inc/cub3d.h b/inc/cub3d.h
index 25b80ee..8fcafc6 100644
--- a/inc/cub3d.h
+++ b/inc/cub3d.h
@@ -160,7 +160,7 @@ uint8_t			ft_use_args(int argc, const char *argv[], t_cub *clist);
 */
 
 void			ft_castray(t_cub *cl);
-void			ft_choose_tex(t_cub *clist);
+void			ft_choose_tex(uint16_t x, t_cub *clist);
 void			ft_detect(t_cub *cl);
 void			ft_detection_init_x(t_cub *cl);
 void			ft_detection_init_y(t_cub *cl);
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index 809963c..fb690ee 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -142,7 +142,6 @@ typedef struct			s_ray
 {
 	uint16_t			line_h;
 	float				wall_dist;
-	float				*wall_dist_tab;
 	float				x_ray_pos;
 	float				y_ray_pos;
 	float				x_ray_dir;
@@ -153,7 +152,6 @@ typedef struct			s_ray
 	float				y_delta_dist;
 	int16_t				wall_t;
 	int16_t				wall_b;
-	int16_t				*wall_bz;
 	uint8_t				side;
 	size_t				sqx;
 	size_t				sqy;
@@ -170,6 +168,12 @@ typedef struct			s_ray
 	float				y_floor;
 	int32_t				x_cell;
 	int32_t				y_cell;
+	int16_t				*wall_t_tab;
+	int16_t				*wall_b_tab;
+	uint8_t				*w_side_tab;
+	uint16_t			*line_h_tab;
+	float				*wall_dist_tab;
+	int16_t				*wall_bz;
 }						t_ray;
 
 typedef struct			s_map
-- 
cgit v1.2.3