mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-06 10:44:01 +00:00
[client] overlay: add new needs_render
for realtime overlays
This commit is contained in:
@@ -85,7 +85,7 @@ void app_glSwapBuffers(void);
|
||||
#define MAX_OVERLAY_RECTS 10
|
||||
void app_registerOverlay(const struct LG_OverlayOps * ops, void * params);
|
||||
void app_setOverlay(bool enable);
|
||||
|
||||
bool app_overlayNeedsRender(void);
|
||||
/**
|
||||
* render the overlay
|
||||
* returns:
|
||||
|
@@ -37,6 +37,10 @@ struct LG_OverlayOps
|
||||
/* final free */
|
||||
void (*free)(void * udata);
|
||||
|
||||
/* return true if realtime rendering is required when in jitRender mode
|
||||
* optional, if omitted assumes false */
|
||||
bool (*needs_render)(void * udata, bool interactive);
|
||||
|
||||
/* perform the actual drawing/rendering
|
||||
*
|
||||
* `interactive` is true if the application is currently in overlay interaction
|
||||
|
Reference in New Issue
Block a user