-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.c
30 lines (27 loc) · 1.24 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: riolivei <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/12 16:10:44 by riolivei #+# #+# */
/* Updated: 2023/10/19 17:43:46 by riolivei ### ########.fr */
/* */
/* ************************************************************************** */
#include "./includes/cub3D.h"
int main(int argc, char **argv)
{
t_root *root;
if (argc != 2)
return (printf("Error\n"));
root = malloc(sizeof(t_root));
ft_init_structs(root);
ft_create_map_image(root->mlx);
ft_create_minimap_images(root->mlx, root->map);
if (!ft_initial_validation(argv[1], root))
return (1);
ft_render_map(root);
hooks(root);
ft_panic(root);
}