mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Add 2-segment line drawing wrapper.
This commit is contained in:
parent
188320db48
commit
b91cd9148d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user