diff options
Diffstat (limited to 'src/ft_tex_init.c')
-rw-r--r-- | src/ft_tex_init.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ft_tex_init.c b/src/ft_tex_init.c index 9daa20d..6c9edce 100644 --- a/src/ft_tex_init.c +++ b/src/ft_tex_init.c @@ -66,6 +66,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; } |