On 12/18/06, Philip Lowman <[EMAIL PROTECTED]> wrote:
Luigi Calori wrote:
> I would be interested in hints on wrapping an osg application into a
> .ddl or .so to be loaded (and eventually unloaded) at runtime.
> Is there a cross platform solution?
> Is the code used in osgDB::DynamicLibrary a good starting point?
> I would like being able to load at runtime a cerain version of my app,
> based on a certain version of osg and eventually unload it and reload a
> different version.
> Does this make sense at all?

I'm not sure if this is what you're looking for, but I've basically
built a framework for wrapping the OSG API into a generic scenegraph
interface. This generic scenegraph interface then provides a
(dynamically loadable) interface to your application. In this manner,
the application doesn't even know which scenegraph api (not to mention
which version of the api) you want to use. Different versions of the
generic scenegraph interface can be loaded at runtime so you could
conceivable interchange osg, performer, or (your favorite sg api
here). In actuality, the generic scenegraph interface is really a
generic module interface so anything can be plugginable. I think for
you from a design standpoint this would be better because your app
doesn't need to care about the specifics of the functionality but just
the interface, the plugin itself provides the version specific
functionality.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to