aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_init_s_ray.c
blob: ed68cd64ec6ff47b8e2b4a1770d0dc918424cc9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   ft_init_s_ray.c                                    :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: rbousset <marvin@42.fr>                    +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2020/02/14 17:22:48 by rbousset          #+#    #+#             */
/*   Updated: 2020/02/14 17:23:42 by rbousset         ###   ########lyon.fr   */
/*                                                                            */
/* ************************************************************************** */

#include <cub3d.h>
#include <stdlib.h>
#include <stddef.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.y_ray_pos = 0;
	rl.x_ray_pos = 0;
	rl.y_ray_dir = 0;
	rl.x_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.sqy = 0;
	rl.sqx = 0;
	rl.hit = 0;
	return (rl);
}