[client] overlay: add 25Hz tick function

This allows an overlay to manage itself for timed events like
alerts/messages, etc.
This commit is contained in:
Geoffrey McRae
2022-01-08 14:06:35 +11:00
parent 35334333ac
commit db2e38ae4d
4 changed files with 51 additions and 9 deletions

View File

@@ -23,6 +23,15 @@
#include "interface/overlay.h"
struct Overlay
{
const struct LG_OverlayOps * ops;
const void * params;
void * udata;
int lastRectCount;
struct Rect lastRects[MAX_OVERLAY_RECTS];
};
extern struct LG_OverlayOps LGOverlayAlert;
extern struct LG_OverlayOps LGOverlayFPS;
extern struct LG_OverlayOps LGOverlayGraphs;