-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.c
More file actions
27 lines (24 loc) · 1.2 KB
/
Copy pathmain.c
File metadata and controls
27 lines (24 loc) · 1.2 KB
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dximenes <dximenes@student.42porto.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/02/01 14:33:42 by dximenes #+# #+# */
/* Updated: 2026/02/01 19:21:53 by dximenes ### ########.fr */
/* */
/* ************************************************************************** */
#include "head.h"
int main(int argc, char *argv[])
{
t_canvas canvas;
t_scene *scene;
if (argc != 2)
execl("./.select_scene", ".select_scene", (char *) NULL);
parse_scene(&scene, argv[1]);
canvas = render(*scene->camera, *scene->world);
ft_init_hooks(&canvas, scene);
mlx_loop(canvas.mlx_ptr);
end(scene, 0, NULL, FALSE);
}