MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / AddTriangle

Method AddTriangle

lib/imgui/imgui_draw.cpp:1081–1090  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1079}
1080
1081void ImDrawList::AddTriangle(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col, float thickness)
1082{
1083 if ((col & IM_COL32_A_MASK) == 0)
1084 return;
1085
1086 PathLineTo(p1);
1087 PathLineTo(p2);
1088 PathLineTo(p3);
1089 PathStroke(col, true, thickness);
1090}
1091
1092void ImDrawList::AddTriangleFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col)
1093{

Callers 2

ColorPicker4Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected