feat: use t_img_data to store textures insted of void ptr

This allows for easier writing of future functions, see next pr comming soon
This commit is contained in:
Khaïs COLIN 2025-08-05 13:08:47 +02:00
parent 121db8bd3c
commit c09ba88d90
Signed by: logistic-bot
SSH key fingerprint: SHA256:RlpiqKeXpcPFZZ4y9Ou4xi2M8OhRJovIwDlbCaMsuAo
3 changed files with 25 additions and 15 deletions

View file

@ -6,7 +6,7 @@
/* By: kcolin <kcolin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/07/17 14:59:37 by kcolin #+# #+# */
/* Updated: 2025/07/31 14:17:28 by kcolin ### ########.fr */
/* Updated: 2025/08/05 13:09:22 by kcolin ### ########.fr */
/* */
/* ************************************************************************** */
@ -23,10 +23,10 @@ typedef struct s_cub3d_data
{
void *mlx;
void *mlx_win;
void *no_texture;
void *so_texture;
void *we_texture;
void *ea_texture;
t_img_data *no_texture;
t_img_data *so_texture;
t_img_data *we_texture;
t_img_data *ea_texture;
t_img_data *img_data;
t_mapdata *map;
t_player player;