forked from 044apde/cub3D
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.c
32 lines (29 loc) · 1.2 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
32
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: shikim <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/09/10 18:10:55 by shikim #+# #+# */
/* Updated: 2023/10/11 15:18:05 by shikim ### ########.fr */
/* */
/* ************************************************************************** */
#include "cub3d.h"
#include "mlx/mlx.h"
int main(int argc, char **argv)
{
char *map_path;
t_map *map_info;
if (argc != 2)
{
show_error("need one map file\n");
return (1);
}
map_path = parse_input(argv[1]);
map_info = load_file(map_path);
execute_cub3d(map_info);
free(map_path);
free_map_info(map_info);
return (0);
}