-
Notifications
You must be signed in to change notification settings - Fork 0
/
fractol.c
52 lines (45 loc) · 1.59 KB
/
fractol.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* fractol.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gmiyakaw <gmiyakaw@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/03 17:08:03 by gmiyakaw #+# #+# */
/* Updated: 2022/12/20 15:09:45 by gmiyakaw ### ########.fr */
/* */
/* ************************************************************************** */
/*
To use MiniLibX func-
tions, you'll need to
link your software with
the MiniLibX library,
and several system
frameworks:
-lmlx -framework OpenGL
-framework AppKit
You may also need to
specify the path to the
MiniLibX library, using
the -L flag.
man locations: /usr/share/man/man3/
*/
#include "fractol.h"
int main(int ac, char **av)
{
t_data f;
if (ac < 2 || !av[1])
{
ft_printf("error: missing argument.\n");
return (-1);
}
f = clean_init();
set_minmax(&f);
f.args = av;
sort_fractal(&f, av[1]);
mlx_setup(&f);
command_list(&f);
mlx_loop_hook(f.mlx, &generate_fractal, &f);
mlx_loop(f.mlx);
return (0);
}