-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclean_images_window.c
27 lines (24 loc) · 1.21 KB
/
clean_images_window.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* clean_images_window.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: abenheni <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/12/04 13:29:37 by abenheni #+# #+# */
/* Updated: 2023/12/04 13:29:38 by abenheni ### ########.fr */
/* */
/* ************************************************************************** */
#include "render_map.h"
void clean_images_window(t_data *info, int failed_texture)
{
int i;
i = failed_texture;
while (--i >= 0)
{
mlx_destroy_image(info->mlx_ptr, info->textures[i].mlx_img);
}
mlx_destroy_image(info->mlx_ptr, info->wimg);
mlx_clear_window(info->mlx_ptr, info->win_ptr);
mlx_destroy_window(info->mlx_ptr, info->win_ptr);
}