Added support for NodeKits to the osgDB::Registry. Object names in .osg

files which have the library::class syntax will automatically invoke
the dynamic loading of either a nodekit or database plugin.
This commit is contained in:
Robert Osfield
2002-06-07 10:03:49 +00:00
parent 9e982e6b32
commit f8502a076c
3 changed files with 143 additions and 23 deletions

View File

@@ -61,6 +61,9 @@ class OSGDB_EXPORT Registry
/** create the platform specific library name associated with file extension.*/
std::string createLibraryNameForExt(const std::string& ext);
/** create the platform specific library name associated with nodekit library name.*/
std::string createLibraryNameForNodeKit(const std::string& name);
/** find the library in the SG_LIBRARY_PATH and load it.*/
bool loadLibrary(const std::string& fileName);
/** close the attached library with specified name.*/
@@ -114,6 +117,9 @@ class OSGDB_EXPORT Registry
osg::Object* readObject(DotOsgWrapperMap& dowMap,Input& fr);
void eraseWrapper(DotOsgWrapperMap& wrappermap,DotOsgWrapper* wrapper);
DotOsgWrapperMap _objectWrapperMap;
DotOsgWrapperMap _imageWrapperMap;
DotOsgWrapperMap _drawableWrapperMap;