diff options
author | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-03-09 20:50:36 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-03-09 20:50:36 +0100 |
commit | fcf4c36c2027d268afd7925785e8588fcb2d920c (patch) | |
tree | ad08d56b5da3ddd89f58fd3796ece96176a3cbe3 /src/ft_tex_init.c | |
parent | In progress, Makefile was bav back then (diff) | |
download | 42-cub3d-fcf4c36c2027d268afd7925785e8588fcb2d920c.tar.gz 42-cub3d-fcf4c36c2027d268afd7925785e8588fcb2d920c.tar.bz2 42-cub3d-fcf4c36c2027d268afd7925785e8588fcb2d920c.tar.xz 42-cub3d-fcf4c36c2027d268afd7925785e8588fcb2d920c.tar.zst 42-cub3d-fcf4c36c2027d268afd7925785e8588fcb2d920c.zip |
Not done
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 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; } |