void ft_draw_map(t_env *e) { t_point pt1; t_point pt2; int i; int j; i = 0; while (i < e->nb_line && !(j = 0)) { while (j < e->size[i]) { pt1 = ft_get_point(e, e->points[i][j], &ft_iso); if (j < e->size[i] - 1) { pt2 = ft_get_point(e, e->points[i][j + 1], &ft_iso); ft_draw_line(e, pt1, pt2); } if (i < (e->nb_line - 1) && j < e->size[i + 1]) { pt2 = ft_get_point(e, e->points[i + 1][j], &ft_iso); ft_draw_line(e, pt1, pt2); } j++; } i++; } }
static void ft_read_pos_rot(char **cf, t_scene *scene, int *n) { *n = *n + 1; ft_get_point(cf[*n], &(scene->pos_cam)); *n = *n + 1; ft_get_point(cf[*n], &(scene->rot_cam)); }