diff options
author | salaaad2 <arthudurant263@gmail.com> | 2020-03-10 16:16:08 +0100 |
---|---|---|
committer | salaaad2 <arthudurant263@gmail.com> | 2020-03-10 16:16:08 +0100 |
commit | 0d589d0038624e3123e6166f6521d1421dd69b23 (patch) | |
tree | 26db0ad344a9c730192eea0bff01bb410ba225b7 /src/ft_tex_init.c | |
parent | still retard (diff) | |
parent | ok now (diff) | |
download | 42-cub3d-0d589d0038624e3123e6166f6521d1421dd69b23.tar.gz 42-cub3d-0d589d0038624e3123e6166f6521d1421dd69b23.tar.bz2 42-cub3d-0d589d0038624e3123e6166f6521d1421dd69b23.tar.xz 42-cub3d-0d589d0038624e3123e6166f6521d1421dd69b23.tar.zst 42-cub3d-0d589d0038624e3123e6166f6521d1421dd69b23.zip |
merge master
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; } |