aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
blob: 05cab8090de6af150cb0a90348766f9a38e094d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <libft.h>
#include <mlx.h>
#include <cub3d.h>
#include <stdlib.h>

int
	main(void)
{
	t_winlist	*wlist;
	t_cublist	*clist;

	wlist = ft_init_winlist();
	clist = ft_init_cublist();
	mlx_key_hook(wlist->winptr, ft_key_event, wlist);
	mlx_loop(wlist->wlx);
	ft_memdel(wlist->wlx);
	ft_memdel(wlist->winptr);
	ft_memdel(wlist);
	ft_memdel(clist);
	return (0);
}