diff options
author | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-05 20:56:58 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-05 20:56:58 +0100 |
commit | d105248f0b08a5c37221a91365a8edb56ce6766d (patch) | |
tree | 55275df48ab00b9a9998239ed2a79e45fad674eb /inc | |
parent | Norme (diff) | |
download | 42-cub3d-d105248f0b08a5c37221a91365a8edb56ce6766d.tar.gz 42-cub3d-d105248f0b08a5c37221a91365a8edb56ce6766d.tar.bz2 42-cub3d-d105248f0b08a5c37221a91365a8edb56ce6766d.tar.xz 42-cub3d-d105248f0b08a5c37221a91365a8edb56ce6766d.tar.zst 42-cub3d-d105248f0b08a5c37221a91365a8edb56ce6766d.zip |
Experiment
Diffstat (limited to 'inc')
-rw-r--r-- | inc/cub3d.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h index 7b6cfc5..0d1c8df 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -78,6 +78,21 @@ 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_cub { char *no_tex_path; |