aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_init_s_ray.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z3r8p1.le-101.fr>2020-02-13 18:30:37 +0100
committerRudy Bousset <rbousset@z3r8p1.le-101.fr>2020-02-13 18:30:37 +0100
commitd91a3ef90ba3975b7c3bd47b69ce7febda2a77a7 (patch)
treedc63c1a193330cabf201fd4afab0c4b02a2d5f65 /src/ft_init_s_ray.c
parentDivided minimap scale by 4, Makefile update (diff)
download42-cub3d-d91a3ef90ba3975b7c3bd47b69ce7febda2a77a7.tar.gz
42-cub3d-d91a3ef90ba3975b7c3bd47b69ce7febda2a77a7.tar.bz2
42-cub3d-d91a3ef90ba3975b7c3bd47b69ce7febda2a77a7.tar.xz
42-cub3d-d91a3ef90ba3975b7c3bd47b69ce7febda2a77a7.tar.zst
42-cub3d-d91a3ef90ba3975b7c3bd47b69ce7febda2a77a7.zip
Smooth
Diffstat (limited to 'src/ft_init_s_ray.c')
-rw-r--r--src/ft_init_s_ray.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/ft_init_s_ray.c b/src/ft_init_s_ray.c
new file mode 100644
index 0000000..5dd0a01
--- /dev/null
+++ b/src/ft_init_s_ray.c
@@ -0,0 +1,25 @@
+#include <cub3d.h>
+
+t_ray
+ft_init_s_ray(void)
+{
+ t_ray rl;
+
+ rl.line_h = 0;
+ rl.wall_dist = 0;
+ rl.wall_t = 0;
+ rl.wall_b = 0;
+ rl.x_ray_pos = 0;
+ rl.y_ray_pos = 0;
+ rl.x_ray_dir = 0;
+ rl.y_ray_dir = 0;
+ rl.x_side_dist = 0;
+ rl.y_side_dist = 0;
+ rl.x_delta_dist = 0;
+ rl.y_delta_dist = 0;
+ rl.side = 0;
+ rl.sqx = 0;
+ rl.sqy = 0;
+ rl.hit = 0;
+ return (rl);
+}