style: split structs.h header into multiple, remove from central dir

This commit is contained in:
Khaïs COLIN 2025-07-17 14:57:29 +02:00
parent 38a05423dd
commit 6322d05b22
Signed by: logistic-bot
SSH key fingerprint: SHA256:RlpiqKeXpcPFZZ4y9Ou4xi2M8OhRJovIwDlbCaMsuAo
19 changed files with 141 additions and 87 deletions

View file

@ -6,13 +6,14 @@
/* By: kcolin <kcolin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/07/17 13:59:27 by kcolin #+# #+# */
/* Updated: 2025/07/17 14:47:25 by kcolin ### ########.fr */
/* Updated: 2025/07/17 15:55:22 by kcolin ### ########.fr */
/* */
/* ************************************************************************** */
#include "../../includes/structs.h"
#include "../../mlx/mlx.h"
#include "../../libft/includes/libft.h"
#include "../map/mapdata.h"
#include "../cub3d_data.h"
#include <stdlib.h>
void free_tab(char **tab)
@ -62,9 +63,9 @@ int destroy(t_cub3d_data *data)
free_map(data->map);
if (data->mlx_win)
mlx_destroy_window(data->mlx, data->mlx_win);
if (data->mlx_data)
mlx_destroy_image(data->mlx, data->mlx_data->img);
free(data->mlx_data);
if (data->img_data)
mlx_destroy_image(data->mlx, data->img_data->img);
free(data->img_data);
if (data->mlx)
mlx_destroy_display(data->mlx);
free(data->mlx);