#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); }