aboutsummaryrefslogtreecommitdiffstats
path: root/inc/cub3d_structs.h
diff options
context:
space:
mode:
Diffstat (limited to 'inc/cub3d_structs.h')
-rw-r--r--inc/cub3d_structs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index aff5663..a516036 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -143,6 +143,11 @@ typedef struct s_ray
float x_f_ray_dir_bis;
float y_f_ray_dir_bis;
uint16_t p;
+ float row_dist;
+ float x_floor;
+ float y_floor;
+ int32_t x_cell;
+ int32_t y_cell;
} t_ray;
typedef struct s_map
@@ -173,6 +178,8 @@ typedef struct s_map
uint8_t scale;
uint32_t nlx;
uint32_t nly;
+ float x_floor_step;
+ float y_floor_step;
} t_map;
typedef struct s_cub