#include #include #include #include #include t_win *ft_init_win(void) { t_win *wlist; if (!(wlist = (t_win*)malloc(sizeof(t_win)))) return (NULL); if (!(wlist->wlx = ft_calloc(1, 1)) || !(wlist->winptr = ft_calloc(1, 1))) return (NULL); return (wlist); } t_cub *ft_init_cub(void) { t_cub *clist; if (!(clist = (t_cub*)malloc(sizeof(t_cub)))) return (NULL); if (!(clist->no_tex_path = (char*)ft_calloc(1, 1)) || !(clist->so_tex_path = (char*)ft_calloc(1, 1)) || !(clist->ea_tex_path = (char*)ft_calloc(1, 1)) || !(clist->we_tex_path = (char*)ft_calloc(1, 1)) || !(clist->sprite_path = (char*)ft_calloc(1, 1))) return (NULL); clist->f_color = 0; clist->c_color = 0; return (clist); }