diff options
author | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-02-28 19:22:58 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-02-28 19:22:58 +0100 |
commit | 36e4ca1eeffa78d57767fced53fd16df17d75373 (patch) | |
tree | fcfc0dcfb5b39c7b026d577194f10f34fa3f3771 /src/ft_tex_init.c | |
parent | Parsed (diff) | |
download | 42-cub3d-36e4ca1eeffa78d57767fced53fd16df17d75373.tar.gz 42-cub3d-36e4ca1eeffa78d57767fced53fd16df17d75373.tar.bz2 42-cub3d-36e4ca1eeffa78d57767fced53fd16df17d75373.tar.xz 42-cub3d-36e4ca1eeffa78d57767fced53fd16df17d75373.tar.zst 42-cub3d-36e4ca1eeffa78d57767fced53fd16df17d75373.zip |
L is now crapaud and you can pass through :^)
Diffstat (limited to '')
-rw-r--r-- | src/ft_tex_init.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ft_tex_init.c b/src/ft_tex_init.c index 40e39e5..b60e405 100644 --- a/src/ft_tex_init.c +++ b/src/ft_tex_init.c @@ -45,4 +45,8 @@ void ft_wall_tex_init(t_cub *cl) cl->mlist->sprite_path, &cl->tlist[4].img_w, &cl->tlist[4].img_h); cl->tlist[4].ptr = mlx_get_data_addr(cl->tlist[4].img, &cl->tlist[4].bpp, &cl->tlist[4].sizeline, &cl->tlist[4].endian); + cl->tlist[5].img = mlx_xpm_file_to_image(cl->wlist->wlx, + cl->mlist->nl_tex_path, &cl->tlist[5].img_w, &cl->tlist[5].img_h); + cl->tlist[5].ptr = mlx_get_data_addr(cl->tlist[5].img, + &cl->tlist[5].bpp, &cl->tlist[5].sizeline, &cl->tlist[5].endian); } |