diff options
Diffstat (limited to '')
-rw-r--r-- | inc/cub3d_structs.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index d392f0c..ecbbaf3 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -16,7 +16,7 @@ #include <stddef.h> #include <stdlib.h> #include <stdint.h> -#include <pthread.h> +#include <sys/types.h> typedef struct s_win { @@ -108,6 +108,7 @@ typedef struct s_player { float pos_x; float pos_y; + float pos_z; float start_x; float start_y; float dir_x; @@ -125,10 +126,18 @@ typedef struct s_ray float y_ray_pos; float x_ray_dir; float y_ray_dir; + float x_ray_dir_bis; + float y_ray_dir_bis; float x_side_dist; float y_side_dist; float x_delta_dist; float y_delta_dist; + float floor_x; + float floor_y; + int16_t ceil_x; + int16_t ceil_y; + float row_dist; + float ceil_dist; int16_t wall_t; int16_t wall_b; uint8_t side; @@ -156,6 +165,8 @@ typedef struct s_map char **mcmd_words; int8_t x_step; int8_t y_step; + int8_t x_floor_step; + int8_t y_floor_step; size_t map_w; size_t map_h; size_t mapl_len; |