| 857 | /////////////// Draw_list Overloads |
| 858 | |
| 859 | void DrawLine(const sf::Vector2f& a, const sf::Vector2f& b, const sf::Color& color, float thickness) |
| 860 | { |
| 861 | ImDrawList* draw_list = ImGui::GetWindowDrawList(); |
| 862 | const ImVec2 pos = ImGui::GetCursorScreenPos(); |
| 863 | draw_list->AddLine(ImVec2(a.x + pos.x, a.y + pos.y), |
| 864 | ImVec2(b.x + pos.x, b.y + pos.y), |
| 865 | ColorConvertFloat4ToU32(toImColor(color)), |
| 866 | thickness); |
| 867 | } |
| 868 | |
| 869 | void DrawRect(const sf::FloatRect& rect, const sf::Color& color, float rounding, int rounding_corners, float thickness) |
| 870 | { |
nothing calls this directly
no test coverage detected