-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcub.c
28 lines (25 loc) · 1.14 KB
/
cub.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* cub.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: yjaadoun <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/03 16:37:17 by yjaadoun #+# #+# */
/* Updated: 2023/03/03 16:38:46 by yjaadoun ### ########.fr */
/* */
/* ************************************************************************** */
#include "cub.h"
int main(int ac, char **av)
{
t_data img;
if (ac == 2)
{
if (!check_path(av[1], TRUE))
exit_error("ERROR : PATH must be *.cub\n");
img.map = parsing(av[1]);
raycasting(&img);
}
else
exit_error("ERROR : Enought args [./cub3D map.cub]\n");
}