diff --git a/server/TracyImGui.hpp b/server/TracyImGui.hpp index e9379c15..f5283d90 100644 --- a/server/TracyImGui.hpp +++ b/server/TracyImGui.hpp @@ -245,6 +245,12 @@ static const ImVec4 SyntaxColorsDimmed[] = { draw->AddPolyline( data, 2, col, 0, thickness ); } +[[maybe_unused]] static tracy_force_inline void DrawLine( ImDrawList* draw, const ImVec2& v1, const ImVec2& v2, const ImVec2& v3, uint32_t col, float thickness = 1.0f ) +{ + const ImVec2 data[3] = { v1, v2, v3 }; + draw->AddPolyline( data, 3, col, 0, thickness ); +} + } #endif