| 1491 | } |
| 1492 | |
| 1493 | void ImDrawList::AddLine(const ImVec2& p1, const ImVec2& p2, ImU32 col, float thickness) |
| 1494 | { |
| 1495 | if ((col & IM_COL32_A_MASK) == 0) |
| 1496 | return; |
| 1497 | PathLineTo(p1 + ImVec2(0.5f, 0.5f)); |
| 1498 | PathLineTo(p2 + ImVec2(0.5f, 0.5f)); |
| 1499 | PathStroke(col, 0, thickness); |
| 1500 | } |
| 1501 | |
| 1502 | // p_min = upper-left, p_max = lower-right |
| 1503 | // Note we don't render 1 pixels sized rectangles properly. |
no test coverage detected