MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / AddTriangle

Method AddTriangle

TheForceEngine/TFE_Ui/imGUI/imgui_draw.cpp:1477–1486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1475}
1476
1477void ImDrawList::AddTriangle(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col, float thickness)
1478{
1479 if ((col & IM_COL32_A_MASK) == 0)
1480 return;
1481
1482 PathLineTo(p1);
1483 PathLineTo(p2);
1484 PathLineTo(p3);
1485 PathStroke(col, ImDrawFlags_Closed, thickness);
1486}
1487
1488void ImDrawList::AddTriangleFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col)
1489{

Callers 2

ColorPicker4Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected