MCPcopy Create free account
hub / github.com/brenocq/implot3d / RendererLineStrip

Method RendererLineStrip

implot3d_items.cpp:426–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424
425template <class _Getter, class _GetterColor> struct RendererLineStrip : RendererBase {
426 RendererLineStrip(const _Getter& getter, const _GetterColor& col_getter, float weight)
427 : RendererBase(getter.Count - 1, 6, 4), Getter(getter), ColGetter(col_getter), HalfWeight(ImMax(1.0f, weight) * 0.5f) {
428 // Initialize the first point in plot coordinates
429 P1_plot = Getter(0);
430 }
431
432 void Init(ImDrawList3D& draw_list_3d) const { GetLineRenderProps(draw_list_3d, HalfWeight, UV0, UV1); }
433

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected