-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.c
31 lines (28 loc) · 1.18 KB
/
main.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mhedeon <mhedeon@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/05/26 17:58:49 by mhedeon #+# #+# */
/* Updated: 2018/07/03 17:13:29 by mhedeon ### ########.fr */
/* */
/* ************************************************************************** */
#include "fdf.h"
int main(int ac, char **av)
{
t_map map;
t_mlx mlx;
t_img img;
t_view field;
if (valid_file(ac, av, &map))
{
initial(&mlx, &map, &img, &field);
draw_map(&mlx, &map, &field);
set_info(&mlx);
mlx_hook(mlx.win_ptr, 2, 0, deal_key, &mlx);
mlx_loop(mlx.mlx_ptr);
}
return (0);
}