-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.c
28 lines (25 loc) · 1.19 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: odudniak <odudniak@student.42firenze.it +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/07/31 12:43:47 by odudniak #+# #+# */
/* Updated: 2024/08/17 15:28:36 by odudniak ### ########.fr */
/* */
/* ************************************************************************** */
#include <cub3D.h>
int main(int ac, char **av)
{
t_var game;
ft_bzero(&game, sizeof(t_var));
game.mlx = mlx_init();
if (!game.mlx)
return (pf_errcode(E_MLX), cleanup(&game, true, 1), 1);
parse(&game, ac, av);
init_config(&game.cnf);
mlx_setup(&game);
mlx_loop(game.mlx);
return (cleanup(&game, true, 0), 0);
}