void start_write(t_map *w) { w->zoom = 15; w->prof = w->zoom / 7; w->flag = 0; w->mlx = mlx_init(); size_win(w); w->win = mlx_new_window(w->mlx, w->width, w->height, "FDF"); w->img = mlx_new_image(w->mlx, w->width, w->height); w->data = mlx_get_data_addr(w->img, &(w->bpp), &(w->sizeline), &(w->endian)); mlx_hook(w->win, 2, 3, check_keys, w); draw(w); mlx_put_image_to_window(w->mlx, w->win, w->img, 0, 0); mlx_string_put(w->mlx, w->win, 20, 1, 0xFFFFFF, "PRESS 'I' FOR INFO"); mlx_loop(w->mlx); }
int my_interface(int largeur) { int i; i = 0; size_win(largeur); while (i != (largeur/2) - 6) { write(1, " ", 1); i++; } write(1, "CASINO", 6); write(1, "\n", 1); i = 0; while (i != largeur) { write(1, "-", 1); i++; } write(1, "\n", 1); return (3); }