mirror of
https://codeberg.org/ACME-Corporation/cub3d.git
synced 2025-12-06 01:48:08 +01:00
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:
parent
121db8bd3c
commit
c09ba88d90
3 changed files with 25 additions and 15 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue