/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* dda.h :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: adjoly +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/10/04 14:04:10 by adjoly #+# #+# */ /* Updated: 2024/10/07 17:42:00 by adjoly ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef DDA_H # define DDA_H # include "typedef.h" /** * @brief Function used to get all the ray angle * * @param player The address of the t_player struct * @param dda The address of the t_dda struct */ 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