Hi Neil,
The easiest way to make sure that your plugin is loaded is to
pre-loaded it - just load your plugin, there are helper functions in
osgDB::Registry, or just statically link your plugin into your app.
The other way is to add your own alias to the Registry to map .zip to
your plugin.
Robert.
On Jan 24, 2008 3:37 PM, [EMAIL PROTECTED] wrote:
Hi all,
I wish to supply my own plugin for the zip format, which unzips to memory.
I've created my plugin derived from the existing zip plugin, overridden the
readnode functions for file and stream, and at the bottom of my class I've
called the RegisterReaderWriterProxy template for my class.
It all appears to work, but I now have two zip file format plugins. The
original, and mine. My one gets called second due to the way the
RegisterReaderWriterProxy template appends to the existing list of known
plugins, the plugin it is given.
Ideally I would like to remove the existing plugin from the known list, thus
there would only be my zip file plugin, and life is happy. However I am
unclear how to do this, or even whether it is possible. Can anyone suggest
what to do please ?
I can see that there is a call removeReaderWriter in the registry, but can't
see how I could call it with the original zip plugin reader, as this would
surely have problems at shut down when the proxy class was destroyed.
Please help
Neil.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org