Refactored the Registry::ReadFileCallback, WriteFileCallback and ReaderWriter::Options to they are now defined in their own header and in the osgDB namespace.
Introduced a new FindFileCallback to Registry to compliement the existing ReadFileCallback and WriteFileCallback. Added support for assign Find, Read and WriteFileCallbacks to osdDB::Options to enable plugins/applications to override the callbacks just for that read/write call and any nested file operations
This commit is contained in:
@@ -21,8 +21,8 @@ namespace osgDB {
|
||||
// forward declare
|
||||
class XmlNode;
|
||||
|
||||
/** read an Xml file, find the file in ReaderWriter::Options DataFilePathList.*/
|
||||
extern OSGDB_EXPORT XmlNode* readXmlFile(const std::string& filename,const ReaderWriter::Options* options);
|
||||
/** read an Xml file, find the file in Options DataFilePathList.*/
|
||||
extern OSGDB_EXPORT XmlNode* readXmlFile(const std::string& filename,const Options* options);
|
||||
|
||||
/** read an Xml file, find the file in osgDB::Registry's eaderWriter::Options DataFilePathList.*/
|
||||
inline XmlNode* readXmlFile(const std::string& filename)
|
||||
|
||||
Reference in New Issue
Block a user