[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:
1 parent
35334333ac
commit
db2e38ae4d
4 files changed
+51
-9
No files matched your search
@@ -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 */
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user