| 1001 | } |
| 1002 | |
| 1003 | void ImDrawList::AddLine(const ImVec2& p1, const ImVec2& p2, ImU32 col, float thickness) |
| 1004 | { |
| 1005 | if ((col & IM_COL32_A_MASK) == 0) |
| 1006 | return; |
| 1007 | PathLineTo(p1 + ImVec2(0.5f, 0.5f)); |
| 1008 | PathLineTo(p2 + ImVec2(0.5f, 0.5f)); |
| 1009 | PathStroke(col, false, thickness); |
| 1010 | } |
| 1011 | |
| 1012 | // p_min = upper-left, p_max = lower-right |
| 1013 | // Note we don't render 1 pixels sized rectangles properly. |
no test coverage detected