MCPcopy Create free account
hub / github.com/SatDump/SatDump / Render

Method Render

src-core/imgui/implot/implot_items.cpp:1474–1485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1472 GetLineRenderProps(draw_list, HalfWeight, UV0, UV1);
1473 }
1474 IMPLOT_INLINE bool Render(ImDrawList& draw_list, const ImRect& cull_rect, int prim) const {
1475 ImVec2 p = this->Transformer(Getter(prim));
1476 if (p.x >= cull_rect.Min.x && p.y >= cull_rect.Min.y && p.x <= cull_rect.Max.x && p.y <= cull_rect.Max.y) {
1477 for (int i = 0; i < Count; i = i + 2) {
1478 ImVec2 p1(p.x + Marker[i].x * Size, p.y + Marker[i].y * Size);
1479 ImVec2 p2(p.x + Marker[i+1].x * Size, p.y + Marker[i+1].y * Size);
1480 PrimLine(draw_list, p1, p2, HalfWeight, Col, UV0, UV1);
1481 }
1482 return true;
1483 }
1484 return false;
1485 }
1486 const _Getter& Getter;
1487 const ImVec2* Marker;
1488 const int Count;

Callers

nothing calls this directly

Calls 1

PrimLineFunction · 0.85

Tested by

no test coverage detected