-
Notifications
You must be signed in to change notification settings - Fork 0
/
destroy_images.c
23 lines (21 loc) · 1.27 KB
/
destroy_images.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* destroy_images.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: zhlim <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/07/23 23:17:31 by zhlim #+# #+# */
/* Updated: 2023/07/24 15:01:28 by zhlim ### ########.fr */
/* */
/* ************************************************************************** */
#include "so_long.h"
void destroy_images(t_map *map)
{
mlx_destroy_image(map->mlx, map->graphic.background.img);
mlx_destroy_image(map->mlx, map->graphic.wall.img);
mlx_destroy_image(map->mlx, map->graphic.character.img);
mlx_destroy_image(map->mlx, map->graphic.exit_closed.img);
mlx_destroy_image(map->mlx, map->graphic.exit_opened.img);
mlx_destroy_image(map->mlx, map->graphic.collectibles.img);
}