implement scene adding callbacks, make a few API tweaks

This commit is contained in:
jp9000
2013-12-28 05:33:16 -07:00
parent fe8559a74b
commit cec94b042e
12 changed files with 83 additions and 24 deletions

View File

@@ -163,7 +163,7 @@ static void test()
/* ------------------------------------------------------ */
/* create scene and add source to scene (twice) */
SceneContext scene{obs_scene_create()};
SceneContext scene{obs_scene_create("test scene")};
if (!scene)
throw "Couldn't create scene";

View File

@@ -167,7 +167,7 @@ int WINAPI WinMain(HINSTANCE instance, HINSTANCE prevInstance, LPSTR cmdLine,
/* ------------------------------------------------------ */
/* create scene and add source to scene (twice) */
SceneContext scene = obs_scene_create();
SceneContext scene = obs_scene_create("test scene");
if (!scene)
throw "Couldn't create scene";