#include #include #include #include t_win *ft_init_win(void) { t_win *wlist; wlist = (t_win*)malloc(sizeof(t_win)); 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_cub *ft_init_cub(void) { t_cub *clist; clist = (t_cub*)malloc(sizeof(t_cub)); return (clist); }