mirror of
https://codeberg.org/ACME-Corporation/cub3d.git
synced 2025-12-06 09:58:09 +01:00
style: split structs.h header into multiple, remove from central dir
This commit is contained in:
parent
38a05423dd
commit
6322d05b22
19 changed files with 141 additions and 87 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue