From c51419a68e38ed3a2eb28e740f72eaa436fbd106 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 9 Mar 2020 01:52:21 +0100 Subject: Boy --- src/ft_tex_init.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/ft_tex_init.c') diff --git a/src/ft_tex_init.c b/src/ft_tex_init.c index 116f537..599e902 100644 --- a/src/ft_tex_init.c +++ b/src/ft_tex_init.c @@ -42,6 +42,15 @@ static void &cl->tlist[6].bpp, &cl->tlist[6].sizeline, &cl->tlist[6].endian); } +static void + ft_get_ceil_tex(t_cub *cl) +{ + cl->tlist[7].img = mlx_xpm_file_to_image(cl->wlist.wlx, + cl->mlist.no_tex_path, &cl->tlist[7].img_w, &cl->tlist[7].img_h); + cl->tlist[7].ptr = mlx_get_data_addr(cl->tlist[7].img, + &cl->tlist[7].bpp, &cl->tlist[7].sizeline, &cl->tlist[7].endian); +} + void ft_wall_tex_init(t_cub *cl) { @@ -68,5 +77,6 @@ void if (cl->mlist.isnlvl) ft_get_nlvl_img(cl); ft_get_floor_tex(cl); + ft_get_ceil_tex(cl); cl->walltexgood = 1; } -- cgit v1.2.3