void Logo::create_all() { create_z(Point2f(m_upper_left.x - 0.99f * m_height, m_upper_left.y + 0.25f * m_height), 0.5f * m_height); create_e(Point2f(m_upper_left.x - 0.55f * m_height, m_upper_left.y + 0.25f * m_height), 0.5f * m_height); create_n(Point2f(m_upper_left.x - 0.11f * m_height, m_upper_left.y + 0.25f * m_height), 0.5f * m_height); create_i(Point2f(m_upper_left.x + 0.33f * m_height, m_upper_left.y + 0.25f * m_height), 0.5f * m_height); create_p(Point2f(m_upper_left.x + 0.77f * m_height, m_upper_left.y + 0.25f * m_height), 0.5f * m_height); create_e(Point2f(m_upper_left.x + 1.21f * m_height, m_upper_left.y + 0.25f * m_height), 0.5f * m_height); create_x(Point2f(m_upper_left.x + 1.65f * m_height, m_upper_left.y + 0.25f * m_height), 0.5f * m_height); create_logo(m_upper_left, m_height); }
void read_and_push_file(t_control *control, t_lem_in **list) { char *line; t_lem_in *lili; int arr[3]; init_arr(arr, 3, 0); while (get_next_line(0, &line)) { arr[0] = check_line_good(line); if (arr[0] == 1 || arr[0] == 2 || arr[0] == 3) { lili = create_e(line); push_back(list, lili); } else if (arr[0] == 0) break; } control->head = *list; correc_double_cmd(control); }