blob: c61dd45ee470f20f65824422cc994ce60ab0df8b (
plain)
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
|
#include <libft.h>
#include <mlx.h>
#include <cub3d.h>
#include <stdlib.h>
t_winlist
*ft_init_winlist(void)
{
t_winlist *wlist;
wlist = (t_winlist*)malloc(sizeof(t_winlist));
wlist->x_size = 800;
wlist->y_size = 600;
wlist->wlx = mlx_init();
wlist->winptr = (void*)malloc(800 * 600);
wlist->winptr = mlx_new_window(wlist->wlx, 800, 600, "Cub3D");
return (wlist);
}
t_cublist
*ft_init_cublist(void)
{
t_cublist *clist;
clist = (t_cublist*)malloc(sizeof(t_cublist));
return (clist);
}
|