| 117 | template <> const unsigned int MaxIdx<unsigned int>::Value = 4294967295; |
| 118 | |
| 119 | IMPLOT_INLINE void GetLineRenderProps(const ImDrawList& draw_list, float& half_weight, ImVec2& tex_uv0, ImVec2& tex_uv1) { |
| 120 | const bool aa = ImHasFlag(draw_list.Flags, ImDrawListFlags_AntiAliasedLines) && |
| 121 | ImHasFlag(draw_list.Flags, ImDrawListFlags_AntiAliasedLinesUseTex); |
| 122 | if (aa) { |
| 123 | ImVec4 tex_uvs = draw_list._Data->TexUvLines[(int)(half_weight*2)]; |
| 124 | tex_uv0 = ImVec2(tex_uvs.x, tex_uvs.y); |
| 125 | tex_uv1 = ImVec2(tex_uvs.z, tex_uvs.w); |
| 126 | half_weight += 1; |
| 127 | } |
| 128 | else { |
| 129 | tex_uv0 = tex_uv1 = draw_list._Data->TexUvWhitePixel; |
| 130 | } |
| 131 | } |
| 132 | |
| 133 | IMPLOT_INLINE void PrimLine(ImDrawList& draw_list, const ImVec2& P1, const ImVec2& P2, float half_weight, ImU32 col, const ImVec2& tex_uv0, const ImVec2 tex_uv1) { |
| 134 | float dx = P2.x - P1.x; |