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:
jp9000
2015-04-01 16:22:28 -07:00
parent 9cc56f2516
commit ebfe477caf
3 changed files with 17 additions and 1 deletions

View File

@@ -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 */