35#ifndef RollingBuffer_h
36#define RollingBuffer_h
44 ImVector<ImVec2> Data;
55 void AddPoint(
float x,
float y)
57 Data.push_back(ImVec2(x, y));
61 float tfirst = Data.begin()->x;
62 if(tfirst < (x - Span))
63 Data.erase(Data.begin());
Realtime plot helper (based on implot_demo)
Definition: RollingBuffer.h:42