-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwindow.c
22 lines (20 loc) · 1.1 KB
/
window.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* window.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: nahmed-m <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/12/29 14:50:45 by nahmed-m #+# #+# */
/* Updated: 2016/01/08 17:07:14 by nahmed-m ### ########.fr */
/* */
/* ************************************************************************** */
#include "fdf.h"
void window(t_env *win)
{
win->mlx = mlx_init();
win->win = mlx_new_window(win->mlx, X_WIN, Y_WIN, NAME);
mlx_expose_hook(win->win, draw, &*win);
mlx_key_hook(win->win, keyboard, &*win);
mlx_loop(win->mlx);
}