#include #include #include #include int ft_init_winlx(t_win *wlist) { if (!(wlist->wlx = mlx_init())) return (-1); if (!(wlist->winptr = (void*)malloc(wlist->x_size * wlist->y_size))) return (-1); if (!(wlist->winptr = mlx_new_window(wlist->wlx, wlist->x_size,\ wlist->y_size, "Cub3D"))) return (-1); ft_printf("Created window of size %dx%d\n", wlist->x_size, wlist->y_size); return (0); }