-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.c
36 lines (33 loc) · 1.25 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
33
34
35
36
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rdutenke <rdutenke@student.42sp.org.br> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/04/19 00:49:43 by rdutenke #+# #+# */
/* Updated: 2021/04/19 00:49:55 by rdutenke ### ########.fr */
/* */
/* ************************************************************************** */
#include "include/header.h"
int main(int argc, char *argv[])
{
t_config config;
t_world w;
if (ft_prevalidation(argc, argv))
{
return (0);
}
config.save = ft_checksave(argc);
if (!ft_readfile(&config, argv))
{
return (0);
}
if (config.o_objects != NULL)
{
ft_init_world(&w, config);
}
ft_canvas(&config, w);
ft_render_camera(config, config.save);
return (0);
}