aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_tex_init.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-18 17:28:48 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-18 17:28:48 +0100
commitb1e33121f7dc4e0c5fff3bc9e384018590371407 (patch)
tree55a466dc65cb69341301eb3410ad3a81763094d8 /src/ft_tex_init.c
parentPlayer position fix (diff)
download42-cub3d-b1e33121f7dc4e0c5fff3bc9e384018590371407.tar.gz
42-cub3d-b1e33121f7dc4e0c5fff3bc9e384018590371407.tar.bz2
42-cub3d-b1e33121f7dc4e0c5fff3bc9e384018590371407.tar.xz
42-cub3d-b1e33121f7dc4e0c5fff3bc9e384018590371407.tar.zst
42-cub3d-b1e33121f7dc4e0c5fff3bc9e384018590371407.zip
Minimap back
Diffstat (limited to 'src/ft_tex_init.c')
-rw-r--r--src/ft_tex_init.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ft_tex_init.c b/src/ft_tex_init.c
index 298fbfc..fe8aadd 100644
--- a/src/ft_tex_init.c
+++ b/src/ft_tex_init.c
@@ -35,6 +35,7 @@
** 13 : sprite 8
** 14 : sprite 9
** 15 : trap
+** 16 : HUD back
*/
static void
@@ -72,6 +73,10 @@ static void
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->tlist[16].img = mlx_xpm_file_to_image(cl->wlist.wlx,
+ FT_HUD_BACK_PATH, &cl->tlist[16].img_w, &cl->tlist[16].img_h);
+ cl->tlist[16].ptr = mlx_get_data_addr(cl->tlist[16].img,
+ &cl->tlist[16].bpp, &cl->tlist[16].sizeline, &cl->tlist[16].endian);
cl->walltexgood = 1;
if (cl->mlist.sprite_var > 1)
{