mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-16 04:18:11 +00:00
[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:
@@ -519,6 +519,10 @@ void app_invalidateWindow(bool full)
|
||||
{
|
||||
if (full)
|
||||
atomic_store(&g_state.invalidateWindow, true);
|
||||
|
||||
if (g_state.jitRender && g_state.ds->stopWaitFrame)
|
||||
g_state.ds->stopWaitFrame();
|
||||
|
||||
lgSignalEvent(g_state.frameEvent);
|
||||
}
|
||||
|
||||
@@ -691,15 +695,6 @@ void app_unregisterGraph(GraphHandle handle)
|
||||
overlayGraph_unregister(handle);
|
||||
}
|
||||
|
||||
struct Overlay
|
||||
{
|
||||
const struct LG_OverlayOps * ops;
|
||||
const void * params;
|
||||
void * udata;
|
||||
int lastRectCount;
|
||||
struct Rect lastRects[MAX_OVERLAY_RECTS];
|
||||
};
|
||||
|
||||
void app_registerOverlay(const struct LG_OverlayOps * ops, const void * params)
|
||||
{
|
||||
ASSERT_LG_OVERLAY_VALID(ops);
|
||||
|
Reference in New Issue
Block a user