-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.c
37 lines (33 loc) · 1.21 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
37
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lpaulo-m <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/03/26 16:21:36 by lpaulo-m #+# #+# */
/* Updated: 2023/02/25 20:04:48 by lpaulo-m ### ########.fr */
/* */
/* ************************************************************************** */
#include <minirt.h>
void initialize(int argc, char **argv)
{
if (argc != 2)
die(ARGC_ERR);
initialize_control(argc, argv);
validate_scene();
initialize_mlx();
parse_scene();
}
void run(void)
{
render_to_window();
mlx_handler();
}
int main(int argc, char **argv)
{
initialize(argc, argv);
run();
cleanup();
return (EXIT_SUCCESS);
}