From fcf4c36c2027d268afd7925785e8588fcb2d920c Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Mon, 9 Mar 2020 20:50:36 +0100 Subject: Not done --- src/ft_tex_init.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/ft_tex_init.c') diff --git a/src/ft_tex_init.c b/src/ft_tex_init.c index 38e4c77..4cbdf73 100644 --- a/src/ft_tex_init.c +++ b/src/ft_tex_init.c @@ -62,6 +62,13 @@ static void ft_get_floor_tex(cl); if (cl->mlist.isctex) ft_get_ceil_tex(cl); + if (cl->mlist.isskybox) + { + cl->tlist[7].img = mlx_xpm_file_to_image(cl->wlist.wlx, + cl->mlist.skybox_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); + } cl->walltexgood = 1; } -- cgit v1.2.3