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

int
	main(void)
{
	t_win	*wlist;
	t_cub	*clist;

	wlist = ft_init_win();
	clist = ft_init_cub();
	ft_parse_map(wlist, clist, "map/map_one.cub");
	mlx_key_hook(wlist->winptr, ft_key_event, wlist);
	ft_drawsquare(wlist, clist, 80, 80);
	mlx_loop(wlist->wlx);
	ft_memdel(clist);
	return (0);
}