-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.c
47 lines (44 loc) · 1.73 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
38
39
40
41
42
43
44
45
46
47
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: abdsalah <abdsalah@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/23 17:44:54 by abdsalah #+# #+# */
/* Updated: 2025/01/03 09:56:50 by abdsalah ### ########.fr */
/* */
/* ************************************************************************** */
#include "fract_ol.h"
int main(int argc, char **argv)
{
t_fractal fractal;
t_graphics graphics;
ft_input_handling(argc, argv, &fractal);
ft_init_fractal(&fractal);
ft_init_graphics(&graphics, &fractal);
ft_render_fractal(&graphics);
mlx_key_hook(graphics.win, ft_key_handler, &graphics);
mlx_mouse_hook(graphics.win, ft_mouse_handler, &graphics);
mlx_hook(graphics.win, 17, 0, ft_close_window, &graphics);
mlx_loop(graphics.mlx);
return (0);
}
/*
_nnnn_
dGGGGMMb ,"""""""""""""".
@p~qp~~qMb | Linux Rules! |
M|@||@) M| _;..............'
@,----.JM| -'
JS^\__/ qKL
dZP qKRb
dZP qKKb
fZP SMMb
HZM MMMM
FqM MMMM
__| ". |\dS"qML
| `. | `' \Zq
_) \.___.,| .'
\____ )MMMMMM| .'
`-' `--' hjm
*/