blob: b6f2932ca13ee9f2fc4870b512438f345b9ab04e (
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
28
|
#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(wlist->x_size * wlist->y_size);
wlist->winptr = mlx_new_window(wlist->wlx, wlist->x_size, wlist->y_size, "Cub3D");
ft_printf("Created window of size %dx%d\n", wlist->x_size, wlist->y_size);
return (wlist);
}
t_cublist
*ft_init_cublist(void)
{
t_cublist *clist;
clist = (t_cublist*)malloc(sizeof(t_cublist));
return (clist);
}
|