[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

@@ -59,6 +59,15 @@ struct LG_OverlayOps
int (*render)(void * udata, bool interactive, struct Rect * windowRects,
int maxRects);
/* called 25 times a second by the application
*
* Note: This may not run in the same context as `render`!
*
* return true if the frame needs to be rendered
* optional, if omitted assumes false
*/
bool (*tick)(void * udata, unsigned long long tickCount);
/* TODO: add load/save settings capabillity */
};