| 905 | GetLineRenderProps(draw_list, HalfWeight, UV0, UV1); |
| 906 | } |
| 907 | IMPLOT_INLINE bool Render(ImDrawList& draw_list, const ImRect& cull_rect, int prim) const { |
| 908 | ImVec2 P2 = this->Transformer(Getter(prim + 1)); |
| 909 | if (!cull_rect.Overlaps(ImRect(ImMin(P1, P2), ImMax(P1, P2)))) { |
| 910 | if (!ImNan(P2.x) && !ImNan(P2.y)) |
| 911 | P1 = P2; |
| 912 | return false; |
| 913 | } |
| 914 | PrimLine(draw_list,P1,P2,HalfWeight,Col,UV0,UV1); |
| 915 | if (!ImNan(P2.x) && !ImNan(P2.y)) |
| 916 | P1 = P2; |
| 917 | return true; |
| 918 | } |
| 919 | const _Getter& Getter; |
| 920 | const ImU32 Col; |
| 921 | mutable float HalfWeight; |