feat: finished base framework to test mlx ideas
This commit is contained in:
parent
7bd843af12
commit
4db733648e
5 changed files with 90 additions and 35 deletions
|
|
@ -6,12 +6,13 @@
|
|||
/* By: bgoulard <bgoulard@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/11/09 01:11:01 by bgoulard #+# #+# */
|
||||
/* Updated: 2024/11/11 21:30:19 by bgoulard ### ########.fr */
|
||||
/* Updated: 2024/11/12 05:49:23 by bgoulard ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "cub3d_struct.h"
|
||||
#include "ft_string.h"
|
||||
#include "mlx_functions.h"
|
||||
|
||||
static void cleanup_cli(t_cli *cli_ctx)
|
||||
{
|
||||
|
|
@ -21,12 +22,16 @@ static void cleanup_cli(t_cli *cli_ctx)
|
|||
|
||||
static void cleanup_map(t_map *map)
|
||||
{
|
||||
(void)map;
|
||||
if (map->fd)
|
||||
(close(map->fd), map->fd = 0);
|
||||
}
|
||||
|
||||
static void cleanup_mlx(t_info *info)
|
||||
{
|
||||
(void)info;
|
||||
mlx_destroy_window(info->mlx_ptr, info->win_ptr);
|
||||
mlx_destroy_display(info->mlx_ptr);
|
||||
if (info->mlx_ptr)
|
||||
ft_free((void **)&info->mlx_ptr);
|
||||
}
|
||||
|
||||
void cleanup_info(t_info *info)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue