Hi Andreas,
On Wed, 2005-05-25 at 18:48 +0200, Andreas Zieringer wrote:
>
> Hi Allen,
>
> adding something like this is quite easy. What about a new global
> setPluginPath() method and a OSG_PLUGIN_PATH envar. In osgInit it just
> looks for all dll/so's in the plugin path and loads them via
> dlopen/LoadLibrary. I wouldn't distinguish between different plugin
> types just load all.
> Any comments?
Hm, that would be a very general solution and not specialized for
loaders, that's what makes it attractive. It might be a problem for
people that have many plugins and don't necessarily want to load all of
them at startup time and would like something more demand-driven.
But your approach is probably easier to implement, the only question is
how to identify plugins. Just loading all dll/so's seems a little rough.
Maybe just calling them 'libOSGPlug*' is enough.
Dirk
P.S.: You don't have to use dlopen/LoadLib, OSG::SharedLibrary can take
care of that. ;)
-------------------------------------------------------
SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate
online with coworkers and clients while avoiding the high cost of travel and
communications. There is no equipment to buy and you can meet as often as
you want. Try it free.http://ads.osdn.com/?ad_id=7402&alloc_id=16135&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users