MCPcopy Create free account
hub / github.com/RenderKit/embree / AddTriangle

Method AddTriangle

tutorials/common/imgui/imgui_draw.cpp:1451–1460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1449}
1450
1451void ImDrawList::AddTriangle(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col, float thickness)
1452{
1453 if ((col & IM_COL32_A_MASK) == 0)
1454 return;
1455
1456 PathLineTo(p1);
1457 PathLineTo(p2);
1458 PathLineTo(p3);
1459 PathStroke(col, ImDrawFlags_Closed, thickness);
1460}
1461
1462void ImDrawList::AddTriangleFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col)
1463{

Callers 1

ColorPicker4Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected