libobs: Add ability to disable displays
Sometimes it can be useful to turn off rendering to the display in order to reduce the number of draw calls and present calls.
This commit is contained in:
@@ -619,6 +619,9 @@ EXPORT void obs_display_remove_draw_callback(obs_display_t *display,
|
||||
void (*draw)(void *param, uint32_t cx, uint32_t cy),
|
||||
void *param);
|
||||
|
||||
EXPORT void obs_display_set_enabled(obs_display_t *display, bool enable);
|
||||
EXPORT bool obs_display_enabled(obs_display_t *display);
|
||||
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
/* Sources */
|
||||
|
Reference in New Issue
Block a user