Ankush's Garage
A collection of stuff made by Ankush Roy
Loading...
Searching...
No Matches
ScrollingBuffer.h
Go to the documentation of this file.
1#ifndef INCLUDE_IMGUICORE_SCROLLINGBUFFER_H_
2#define INCLUDE_IMGUICORE_SCROLLINGBUFFER_H_
3
4#include <imgui.h>
5
7{
8 int MaxSize;
9 int Offset;
10 ImVector<ImVec2> Data;
11 explicit ScrollingBuffer(int p_MaxSize = 2000);
12 [[nodiscard]] int GetOffset() const;
13 void AddPoint(float x, float y);
14 void Erase();
15};
16
17#endif // INCLUDE_IMGUICORE_SCROLLINGBUFFER_H_
void Erase()
Definition ScrollingBuffer.cpp:26
int MaxSize
Definition ScrollingBuffer.h:8
int Offset
Definition ScrollingBuffer.h:9
int GetOffset() const
Definition ScrollingBuffer.cpp:10
ImVector< ImVec2 > Data
Definition ScrollingBuffer.h:10
void AddPoint(float x, float y)
Definition ScrollingBuffer.cpp:15
ScrollingBuffer(int p_MaxSize=2000)
Definition ScrollingBuffer.cpp:3