| 1449 | } |
| 1450 | |
| 1451 | void 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 | |
| 1462 | void ImDrawList::AddTriangleFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col) |
| 1463 | { |