MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / AddTriangle

Method AddTriangle

3rdparty/imgui/src/imgui_draw.cpp:1580–1589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1578}
1579
1580void ImDrawList::AddTriangle(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col, float thickness)
1581{
1582 if ((col & IM_COL32_A_MASK) == 0)
1583 return;
1584
1585 PathLineTo(p1);
1586 PathLineTo(p2);
1587 PathLineTo(p3);
1588 PathStroke(col, thickness, ImDrawFlags_Closed);
1589}
1590
1591void ImDrawList::AddTriangleFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col)
1592{

Callers 2

ColorPicker4Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected