[client] imgui: support registering new graphs

Currently, our struct ll doesn't support removing elements from the middle,
so we will not be removing anything for now.
This commit is contained in:
Quantum
2021-07-17 22:31:11 -04:00
committed by Geoffrey McRae
parent a4bf3c8088
commit 15bc6a1509
4 changed files with 68 additions and 54 deletions

View File

@@ -24,6 +24,7 @@
#include <stdbool.h>
#include <linux/input.h>
#include "common/ringbuffer.h"
#include "common/types.h"
#include "interface/displayserver.h"
@@ -78,6 +79,9 @@ void app_glSetSwapInterval(int interval);
void app_glSwapBuffers(void);
#endif
typedef struct ImGuiGraph * GraphHandle;
GraphHandle app_registerGraph(const char * name, RingBuffer buffer);
void app_unregisterGraph(GraphHandle handle);
bool app_renderImGui(void);
void app_clipboardRelease(void);