MCPcopy Create free account
hub / github.com/SFML/imgui-sfml / DrawLine

Function DrawLine

imgui-SFML.cpp:859–867  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

857/////////////// Draw_list Overloads
858
859void 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
869void DrawRect(const sf::FloatRect& rect, const sf::Color& color, float rounding, int rounding_corners, float thickness)
870{

Callers

nothing calls this directly

Calls 1

toImColorFunction · 0.85

Tested by

no test coverage detected