feat: adding all the textures
This commit is contained in:
parent
954c5f76d6
commit
badd6534f4
11 changed files with 276 additions and 13 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/11/20 12:25:45 by rparodi #+# #+# */
|
||||
/* Updated: 2024/11/20 15:20:23 by rparodi ### ########.fr */
|
||||
/* Updated: 2024/12/02 17:54:04 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -32,6 +32,9 @@ bool mlx_load_all_textures(t_info *info)
|
|||
i = 0;
|
||||
info->map.texture[0] = mlx_load_image(info, "../textures/a.xpm");
|
||||
info->map.texture[1] = mlx_load_image(info, "../textures/b.xpm");
|
||||
info->map.texture[2] = mlx_load_image(info, "../textures/sandy_32.xpm");
|
||||
info->map.texture[3] = mlx_load_image(info, "../textures/cobblestone_32.xpm");
|
||||
|
||||
while (i < 4)
|
||||
{
|
||||
if (!info->map.texture[i])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue