[client] overlay/graphs: allow the graph to have a custom title format

This commit is contained in:
Geoffrey McRae
2022-01-17 22:08:56 +11:00
parent 42ed0d7638
commit 464fee3e20
7 changed files with 43 additions and 24 deletions

View File

@@ -110,8 +110,11 @@ void app_invalidateOverlay(bool renderTwice);
struct OverlayGraph;
typedef struct OverlayGraph * GraphHandle;
typedef const char * (*GraphFormatFn)(const char * name,
float min, float max, float avg, float freq, float last);
GraphHandle app_registerGraph(const char * name, RingBuffer buffer, float min, float max);
GraphHandle app_registerGraph(const char * name, RingBuffer buffer,
float min, float max, GraphFormatFn formatFn);
void app_unregisterGraph(GraphHandle handle);
void app_overlayConfigRegister(const char * title,