| 1477 | } |
| 1478 | |
| 1479 | void ImDrawList::AddLine(const ImVec2& p1, const ImVec2& p2, ImU32 col, float thickness) |
| 1480 | { |
| 1481 | if ((col & IM_COL32_A_MASK) == 0) |
| 1482 | return; |
| 1483 | const ImVec2 points[2] = { ImVec2(p1.x + 0.5f, p1.y + 0.5f), ImVec2(p2.x + 0.5f, p2.y + 0.5f) }; |
| 1484 | AddPolyline(points, 2, col, thickness); |
| 1485 | } |
| 1486 | |
| 1487 | void ImDrawList::AddLineH(float min_x, float max_x, float y, ImU32 col, float thickness) |
| 1488 | { |
no test coverage detected