Re: Very simple scene switcher
This is very awesome. It goes a long way towards an idea I had for a scene switcher plugin. I'm not a livestreamer myself, but love to experiment with it, and if I had the time, would probably be doing some livestreaming. The only thing I'd like is to be able to not have a main window/scene and an alternate scene, but to be able to define a list of window titles, each of which can have a scene associated with then. Alternate scene would be called default, but that's just linguistics. In stead of working with window handles, the windows would be identified by their title.
My proficiency with c++ is far from sufficient to create such a plugin, as I generally work with Java and C#. However, I'm a quick learner, and with this code as an example, I might be able to extend it to include the functionality described above. So I'll take you up on your offer to get involved, and I'll see if I can find the time to do some work on it.
So far I have managed to compile OBS in Visual Studio 2008. scenesw seems to be made in a newer version of visual studio though, and I do not own any newer version. I did get it working in Visual C++ Express 2012 by changing the following line in scenesw.rc:
to (code boxes are huge, so I'm using quotes)
I'm not sure if this breaks anything, but so far I got it to compile, and it functions properly within OBS. Could anyone tell me if this could cause any problems?
I don't know how far I should go into the code in this thread, but when looking at APIInterface.h from OBS. It seems Jim wants you to use the C-style API exports, rather than the virtual functions. My first try at changing something was to replace these, and that seems to work the same still.