aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z3r8p1.le-101.fr>2020-02-13 17:28:01 +0100
committerRudy Bousset <rbousset@z3r8p1.le-101.fr>2020-02-13 17:28:01 +0100
commit3dd666969d58d7608d25d240a95be84a8bf42394 (patch)
treee3aa66c20eb572561d22f65b3ee16830734df2fe /inc
parentdoes not compile but new header for structs (diff)
download42-cub3d-3dd666969d58d7608d25d240a95be84a8bf42394.tar.gz
42-cub3d-3dd666969d58d7608d25d240a95be84a8bf42394.tar.bz2
42-cub3d-3dd666969d58d7608d25d240a95be84a8bf42394.tar.xz
42-cub3d-3dd666969d58d7608d25d240a95be84a8bf42394.tar.zst
42-cub3d-3dd666969d58d7608d25d240a95be84a8bf42394.zip
Divided minimap scale by 4, Makefile update
Diffstat (limited to 'inc')
-rw-r--r--inc/cub3d_structs.h27
1 files changed, 16 insertions, 11 deletions
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index 1a45860..cc5d805 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -43,19 +43,24 @@ typedef struct s_player
float view_side;
} 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
{
- 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];
+ uint16_t line_h;
} t_ray;
typedef struct s_cub