feat: adding the raycasting launch ray
This commit is contained in:
parent
b9117a26e2
commit
bd5ed03b27
3 changed files with 30 additions and 11 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: bgoulard <bgoulard@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/11/08 23:55:29 by bgoulard #+# #+# */
|
||||
/* Updated: 2024/11/12 11:05:49 by bgoulard ### ########.fr */
|
||||
/* Updated: 2024/11/12 15:03:39 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -109,7 +109,6 @@ typedef enum e_error
|
|||
typedef struct s_info
|
||||
{
|
||||
t_error last_error;
|
||||
|
||||
t_xvar *mlx_ptr;
|
||||
t_win_list *win_ptr;
|
||||
t_map map;
|
||||
|
|
|
|||
|
|
@ -6,14 +6,17 @@
|
|||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/11/12 12:27:30 by rparodi #+# #+# */
|
||||
/* Updated: 2024/11/12 12:29:51 by rparodi ### ########.fr */
|
||||
/* Updated: 2024/11/12 15:04:37 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef RAYCAST_H
|
||||
# define RAYCAST_H
|
||||
|
||||
#include <math.h>
|
||||
# include <math.h>
|
||||
|
||||
# define MAX_RANGE 100.0
|
||||
# define STEP_SIZE 0.1
|
||||
|
||||
/**
|
||||
* @brief Convert the degrees to radian
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue