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.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index bab7241..1b46312 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -85,6 +85,8 @@ typedef struct s_img
int img_h;
int tex_x;
int tex_y;
+ int tex_x_alt;
+ int tex_y_alt;
} t_img;
typedef struct s_rgb
@@ -142,7 +144,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 +154,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;
@@ -168,8 +168,15 @@ typedef struct s_ray
float row_dist;
float x_floor;
float y_floor;
- int32_t x_cell;
- int32_t y_cell;
+ int32_t *tex_x_tab;
+ int32_t ***fc_tex_x_tab;
+ int32_t ***fc_tex_y_tab;
+ float *row_dist_tab;
+ int16_t *wall_t_tab;
+ int16_t *wall_b_tab;
+ uint8_t *w_side_tab;
+ uint16_t *line_h_tab;
+ float *wall_dist_tab;
} t_ray;
typedef struct s_map
@@ -234,6 +241,7 @@ typedef struct s_cub
uint8_t doicast;
uint16_t currlvl;
uint16_t i;
+ uint16_t y;
char errmsg[64];
int32_t key_input[5];
char fps_count[9];