| 874 | GetLineRenderProps(draw_list, HalfWeight, UV0, UV1); |
| 875 | } |
| 876 | IMPLOT_INLINE bool Render(ImDrawList& draw_list, const ImRect& cull_rect, int prim) const { |
| 877 | ImVec2 P2 = this->Transformer(Getter(prim + 1)); |
| 878 | if (!cull_rect.Overlaps(ImRect(ImMin(P1, P2), ImMax(P1, P2)))) { |
| 879 | P1 = P2; |
| 880 | return false; |
| 881 | } |
| 882 | PrimLine(draw_list,P1,P2,HalfWeight,Col,UV0,UV1); |
| 883 | P1 = P2; |
| 884 | return true; |
| 885 | } |
| 886 | const _Getter& Getter; |
| 887 | const ImU32 Col; |
| 888 | mutable float HalfWeight; |