diff options
author | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-02-19 17:42:39 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-02-19 17:42:39 +0100 |
commit | 7b2b82106491c78e7a288a77db1f5080ef089d0f (patch) | |
tree | 493a98bc97be86c4aaf34dbe0d29730e855a725b /src/ft_tex_init.c | |
parent | Commit (diff) | |
download | 42-cub3d-7b2b82106491c78e7a288a77db1f5080ef089d0f.tar.gz 42-cub3d-7b2b82106491c78e7a288a77db1f5080ef089d0f.tar.bz2 42-cub3d-7b2b82106491c78e7a288a77db1f5080ef089d0f.tar.xz 42-cub3d-7b2b82106491c78e7a288a77db1f5080ef089d0f.tar.zst 42-cub3d-7b2b82106491c78e7a288a77db1f5080ef089d0f.zip |
go merge
Diffstat (limited to 'src/ft_tex_init.c')
-rw-r--r-- | src/ft_tex_init.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ft_tex_init.c b/src/ft_tex_init.c index 724877f..40e39e5 100644 --- a/src/ft_tex_init.c +++ b/src/ft_tex_init.c @@ -10,10 +10,10 @@ /* */ /* ************************************************************************** */ +#include <libft.h> #include <cub3d.h> #include <stdint.h> #include <mlx.h> -#include <libft.h> /* ** 0 : no @@ -26,23 +26,23 @@ void ft_wall_tex_init(t_cub *cl) { cl->tlist[0].img = mlx_xpm_file_to_image(cl->wlist->wlx, - cl->mlist->no_tex_path, &cl->tlist[0].img_w, &cl->tlist[0].img_h); + cl->mlist->no_tex_path, &cl->tlist[0].img_w, &cl->tlist[0].img_h); cl->tlist[0].ptr = mlx_get_data_addr(cl->tlist[0].img, &cl->tlist[0].bpp, &cl->tlist[0].sizeline, &cl->tlist[0].endian); cl->tlist[1].img = mlx_xpm_file_to_image(cl->wlist->wlx, - cl->mlist->so_tex_path, &cl->tlist[1].img_w, &cl->tlist[1].img_h); + cl->mlist->so_tex_path, &cl->tlist[1].img_w, &cl->tlist[1].img_h); cl->tlist[1].ptr = mlx_get_data_addr(cl->tlist[1].img, &cl->tlist[1].bpp, &cl->tlist[1].sizeline, &cl->tlist[1].endian); cl->tlist[2].img = mlx_xpm_file_to_image(cl->wlist->wlx, - cl->mlist->ea_tex_path, &cl->tlist[2].img_w, &cl->tlist[2].img_h); + cl->mlist->ea_tex_path, &cl->tlist[2].img_w, &cl->tlist[2].img_h); cl->tlist[2].ptr = mlx_get_data_addr(cl->tlist[2].img, &cl->tlist[2].bpp, &cl->tlist[2].sizeline, &cl->tlist[2].endian); cl->tlist[3].img = mlx_xpm_file_to_image(cl->wlist->wlx, - cl->mlist->we_tex_path, &cl->tlist[3].img_w, &cl->tlist[3].img_h); + cl->mlist->we_tex_path, &cl->tlist[3].img_w, &cl->tlist[3].img_h); cl->tlist[3].ptr = mlx_get_data_addr(cl->tlist[3].img, &cl->tlist[3].bpp, &cl->tlist[3].sizeline, &cl->tlist[3].endian); cl->tlist[4].img = mlx_xpm_file_to_image(cl->wlist->wlx, - cl->mlist->sprite_path, &cl->tlist[4].img_w, &cl->tlist[4].img_h); + cl->mlist->sprite_path, &cl->tlist[4].img_w, &cl->tlist[4].img_h); cl->tlist[4].ptr = mlx_get_data_addr(cl->tlist[4].img, &cl->tlist[4].bpp, &cl->tlist[4].sizeline, &cl->tlist[4].endian); } |