Added mechanism for registering proxy objects in the .osg plugin in a way that is compatible with static linking.

This commit is contained in:
Robert Osfield
2008-12-10 16:26:02 +00:00
parent 1b55a56731
commit c3611c5875
89 changed files with 945 additions and 883 deletions

View File

@@ -697,6 +697,15 @@ struct PluginFunctionProxy
extern "C" void osgdb_##ext(void) {} \
static osgDB::RegisterReaderWriterProxy<classname> g_proxy_##classname;
#define USE_DOTOSGWRAPPER(classname) \
extern "C" void dotosgwrapper_##classname(void); \
static osgDB::PluginFunctionProxy proxy_dotosgwrapper_##classname(dotosgwrapper_##classname);
#define REGISTER_DOTOSGWRAPPER(classname) \
extern "C" void dotosgwrapper_##classname(void) {} \
static osgDB::RegisterDotOsgWrapperProxy dotosgwrapper_proxy_##classname
}
#endif