diff options
author | Rudy Bousset <rbousset@z3r8p1.le-101.fr> | 2020-02-13 19:22:15 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z3r8p1.le-101.fr> | 2020-02-13 19:22:15 +0100 |
commit | fb98fd19ba9e27eb3a169a7599ce41fb0877b7a6 (patch) | |
tree | 2185933c9bde571819dfd480b48aa66459a30b2e /inc/cub3d_structs.h | |
parent | Solid map is better (diff) | |
download | 42-cub3d-fb98fd19ba9e27eb3a169a7599ce41fb0877b7a6.tar.gz 42-cub3d-fb98fd19ba9e27eb3a169a7599ce41fb0877b7a6.tar.bz2 42-cub3d-fb98fd19ba9e27eb3a169a7599ce41fb0877b7a6.tar.xz 42-cub3d-fb98fd19ba9e27eb3a169a7599ce41fb0877b7a6.tar.zst 42-cub3d-fb98fd19ba9e27eb3a169a7599ce41fb0877b7a6.zip |
Better code structure
Diffstat (limited to '')
-rw-r--r-- | inc/cub3d_structs.h | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index 0c3cb7c..f40a438 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -48,21 +48,6 @@ typedef struct s_player float plane_y; } t_player; -/* typedef struct s_ray */ -/* { */ -/* double x_ray_position; */ -/* double y_ray_position; */ -/* double x_ray_direction; */ -/* double y_ray_direction; */ -/* double x_side_distance; */ -/* double y_side_distance; */ -/* double x_delta_distance; */ -/* double y_delta_distance; */ -/* int hitX; */ -/* int hitY; */ -/* int hits[150]; */ -/* } t_ray; */ - typedef struct s_ray { uint16_t line_h; @@ -83,6 +68,10 @@ typedef struct s_ray uint8_t hit; } t_ray; +/* typedef struct s_map */ +/* { */ +/* } t_map; */ + typedef struct s_cub { char *no_tex_path; @@ -100,6 +89,7 @@ typedef struct s_cub size_t map_start; uint8_t isspawn; uint8_t scale; + uint8_t minimap; struct s_win *wlist; struct s_player *plist; struct s_ray rlist; |