On 14/5/09 12:13 PM, Vincent Bourdier wrote:
#define REGISTER_OSGPLUGIN(ext, classname) \
     extern "C" void osgdb_##ext(void) {} \
     static osgDB::RegisterReaderWriterProxy<classname> g_proxy_##classname;

So the static member is for communication, but the osgdb_##ext is for
what ? I didn't see what does this declaration can do ..

No idea.
It's referenced by the USE_OSGPLUGIN macro (function pointer passed to PluginFunctionProxy) and called but since it's empty there's not a lot happening.

Ah... it's used to force linkage against a certain plugin library to produce a static executable. See examples/osgstaticviewer.

Cheers,
/ulrich
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to