-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.c
31 lines (27 loc) · 1.14 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sadamant <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/02/21 13:52:37 by sadamant #+# #+# */
/* Updated: 2018/03/13 11:53:27 by sadamant ### ########.fr */
/* */
/* ************************************************************************** */
#include "wolf3d.h"
#include <stdio.h>
int quit_program(t_env *e)
{
mlx_destroy_window(e->mlx, e->wid);
exit(EXIT_SUCCESS);
return (0);
}
int main(int argc, char **argv)
{
t_env *e;
e = setup_environment(argc, argv);
render(e);
mlx_loop(e->mlx);
return (0);
}