(API Change) libobs: Add 'type' to obs_scene_duplicate
(Note: This commit also modifies the UI) Allows the ability to duplicate sources fully copied, and/or have the scene and its duplicates be private sources
This commit is contained in:
13
libobs/obs.h
13
libobs/obs.h
@@ -1084,13 +1084,18 @@ EXPORT obs_scene_t *obs_scene_create(const char *name);
|
||||
|
||||
EXPORT obs_scene_t *obs_scene_create_private(const char *name);
|
||||
|
||||
enum obs_scene_duplicate_type {
|
||||
OBS_SCENE_DUP_REFS, /**< Source refs only */
|
||||
OBS_SCENE_DUP_COPY, /**< Fully duplicate */
|
||||
OBS_SCENE_DUP_PRIVATE_REFS, /**< Source refs only (as private) */
|
||||
OBS_SCENE_DUP_PRIVATE_COPY /**< Fully duplicate (as private) */
|
||||
};
|
||||
|
||||
/**
|
||||
* Duplicates a scene.
|
||||
*
|
||||
* Sources in a scene will not be recreated; it will contain references to
|
||||
* the same sources as the originating scene.
|
||||
*/
|
||||
EXPORT obs_scene_t *obs_scene_duplicate(obs_scene_t *scene, const char *name);
|
||||
EXPORT obs_scene_t *obs_scene_duplicate(obs_scene_t *scene, const char *name,
|
||||
enum obs_scene_duplicate_type type);
|
||||
|
||||
EXPORT void obs_scene_addref(obs_scene_t *scene);
|
||||
EXPORT void obs_scene_release(obs_scene_t *scene);
|
||||
|
Reference in New Issue
Block a user