1
0

🏗️」 wip(DDA): Started puting everything together

This commit is contained in:
2024-10-07 19:07:28 +02:00
parent c7fd02590a
commit 1b5c1a4d01
6 changed files with 92 additions and 20 deletions

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/04 14:04:10 by adjoly #+# #+# */
/* Updated: 2024/10/06 18:48:38 by adjoly ### ########.fr */
/* Updated: 2024/10/07 17:42:00 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -23,4 +23,23 @@
*/
void get_ray_angle(t_player *player, t_dda (*dda)[800]);
/**
* @brief Function used to setup all the dda variable prior to casting
* the rays
*
* @param player The address of the t_player struct
* @param dda The address of the t_dda struct
*
*/
void setup_dda(t_dda (*dda)[800], t_player *player);
/**
* @brief Function used to cast all the rays
*
* @param dda The address of the t_dda struct
* @param map The map as a char **
* @param map_coord The coordinate of the player on the map_grid
*/
void while_dda(t_dda (*dda)[800], char **map, t_coord map_coord);
#endif