From: SourceForge.net <no...@so...> - 2010-01-04 21:46:04
|
Patches item #2925869, was opened at 2010-01-05 10:46 Message generated for change (Tracker Item Submitted) made by razorunreal You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=433166&aid=2925869&group_id=42445 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Stage Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: RAZOR (razorunreal) Assigned to: Richard Vaughan (rtv) Summary: Plugin models Initial Comment: I've written some code to allow new model types to be registered by specifying a plugin library in the world file, with syntax: plugin "libmymodel" Upon parsing the plugin statement the function RegisterPlugin will be called, so the plugin library must contain code something like: extern "C" { void RegisterPlugin(void) { Register( "mymodel", Creator<ModelMyModel> ); // Register model with stage so it can be created } } The idea is that you should not have to reinstall stage every time you modify a model, you should be able to use a standard stage package and still develop your own models. I should have a similar plugin system ready for interfaces in libstageplugin soon. To avoid duplicate code, I have shifted the plugin loading code out of LoadControllerModule and into stage.cc so I can reuse it for other plugin systems. I'm not sure if that is the best place to put it, and I hope I have not made any mistakes while making it more generic. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=433166&aid=2925869&group_id=42445 |