int main(int ac, char **av) { int i; t_flag flg; t_swap *a; t_swap *b; a = NULL; b = NULL; i = ac - 1; if (ac < 2) ft_usage(av[0]); else { ft_extract_stack(av, i, &a, &flg); i == flg.total_mod ? ft_error() : 0; ft_check_duplicates(a); ft_init_b(i - flg.total_mod, &b); ft_end(a); ft_end(b); flg.infos ? ft_print_infos(a) : 0; a->next == NULL ? ft_exit_one_nb(a, flg) : 0; ft_is_sorted(a) && ft_is_null(b) ? ft_exit_already_ordered(a, flg) : 0; ft_launcher(a, b, &flg); } return (0); }
void ft_render(GLFWwindow* window) { float ratio; ratio = ft_getratio(window); ft_bonus(ratio); ft_balle(); ft_raquette(); ft_rect(-2.33f, 0.0f, 1.0f, 0.0f); ft_rect(-2.15f, 0.010f, 1.5f, 0.5f); ft_rect(-1.97f, 0.012f, 1.0f, 1.0f); ft_rect(-1.79f, 0.014f, 0.0f, 1.0f); ft_print_infos(); }