Add 2-segment line drawing wrapper.

This commit is contained in:
Bartosz Taudul 2021-06-19 16:22:50 +02:00
parent 188320db48
commit b91cd9148d
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -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