| 936 | GetLineRenderProps(draw_list, HalfWeight, UV0, UV1); |
| 937 | } |
| 938 | IMPLOT_INLINE bool Render(ImDrawList& draw_list, const ImRect& cull_rect, int prim) const { |
| 939 | ImVec2 P1 = this->Transformer(Getter(prim*2+0)); |
| 940 | ImVec2 P2 = this->Transformer(Getter(prim*2+1)); |
| 941 | if (!cull_rect.Overlaps(ImRect(ImMin(P1, P2), ImMax(P1, P2)))) |
| 942 | return false; |
| 943 | PrimLine(draw_list,P1,P2,HalfWeight,Col,UV0,UV1); |
| 944 | return true; |
| 945 | } |
| 946 | const _Getter& Getter; |
| 947 | const ImU32 Col; |
| 948 | mutable float HalfWeight; |