| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | |
|---|
| 14 | #include <osgDB/Callbacks> |
|---|
| 15 | #include <osgDB/Registry> |
|---|
| 16 | |
|---|
| 17 | using namespace osgDB; |
|---|
| 18 | |
|---|
| 19 | |
|---|
| 20 | |
|---|
| 21 | |
|---|
| 22 | |
|---|
| 23 | std::string FindFileCallback::findDataFile(const std::string& filename, const Options* options, CaseSensitivity caseSensitivity) |
|---|
| 24 | { |
|---|
| 25 | return osgDB::Registry::instance()->findDataFileImplementation(filename, options, caseSensitivity); |
|---|
| 26 | } |
|---|
| 27 | |
|---|
| 28 | std::string FindFileCallback::findLibraryFile(const std::string& filename, const Options* options, CaseSensitivity caseSensitivity) |
|---|
| 29 | { |
|---|
| 30 | return osgDB::Registry::instance()->findLibraryFileImplementation(filename, options, caseSensitivity); |
|---|
| 31 | } |
|---|
| 32 | |
|---|
| 33 | |
|---|
| 34 | |
|---|
| 35 | |
|---|
| 36 | |
|---|
| 37 | ReaderWriter::ReadResult ReadFileCallback::openArchive(const std::string& filename,ReaderWriter::ArchiveStatus status, unsigned int indexBlockSizeHint, const Options* useObjectCache) |
|---|
| 38 | { |
|---|
| 39 | return osgDB::Registry::instance()->openArchiveImplementation(filename, status, indexBlockSizeHint, useObjectCache); |
|---|
| 40 | } |
|---|
| 41 | |
|---|
| 42 | ReaderWriter::ReadResult ReadFileCallback::readObject(const std::string& filename, const Options* options) |
|---|
| 43 | { |
|---|
| 44 | return osgDB::Registry::instance()->readObjectImplementation(filename,options); |
|---|
| 45 | } |
|---|
| 46 | |
|---|
| 47 | ReaderWriter::ReadResult ReadFileCallback::readImage(const std::string& filename, const Options* options) |
|---|
| 48 | { |
|---|
| 49 | return osgDB::Registry::instance()->readImageImplementation(filename,options); |
|---|
| 50 | } |
|---|
| 51 | |
|---|
| 52 | ReaderWriter::ReadResult ReadFileCallback::readHeightField(const std::string& filename, const Options* options) |
|---|
| 53 | { |
|---|
| 54 | return osgDB::Registry::instance()->readHeightFieldImplementation(filename,options); |
|---|
| 55 | } |
|---|
| 56 | |
|---|
| 57 | ReaderWriter::ReadResult ReadFileCallback::readNode(const std::string& filename, const Options* options) |
|---|
| 58 | { |
|---|
| 59 | return osgDB::Registry::instance()->readNodeImplementation(filename,options); |
|---|
| 60 | } |
|---|
| 61 | |
|---|
| 62 | ReaderWriter::ReadResult ReadFileCallback::readShader(const std::string& filename, const Options* options) |
|---|
| 63 | { |
|---|
| 64 | return osgDB::Registry::instance()->readShaderImplementation(filename,options); |
|---|
| 65 | } |
|---|
| 66 | |
|---|
| 67 | |
|---|
| 68 | |
|---|
| 69 | |
|---|
| 70 | |
|---|
| 71 | ReaderWriter::WriteResult WriteFileCallback::writeObject(const osg::Object& obj, const std::string& fileName,const Options* options) |
|---|
| 72 | { |
|---|
| 73 | return osgDB::Registry::instance()->writeObjectImplementation(obj,fileName,options); |
|---|
| 74 | } |
|---|
| 75 | |
|---|
| 76 | ReaderWriter::WriteResult WriteFileCallback::writeImage(const osg::Image& obj, const std::string& fileName,const Options* options) |
|---|
| 77 | { |
|---|
| 78 | return osgDB::Registry::instance()->writeImageImplementation(obj,fileName,options); |
|---|
| 79 | } |
|---|
| 80 | |
|---|
| 81 | ReaderWriter::WriteResult WriteFileCallback::writeHeightField(const osg::HeightField& obj, const std::string& fileName,const Options* options) |
|---|
| 82 | { |
|---|
| 83 | return osgDB::Registry::instance()->writeHeightFieldImplementation(obj,fileName,options); |
|---|
| 84 | } |
|---|
| 85 | |
|---|
| 86 | ReaderWriter::WriteResult WriteFileCallback::writeNode(const osg::Node& obj, const std::string& fileName,const Options* options) |
|---|
| 87 | { |
|---|
| 88 | return osgDB::Registry::instance()->writeNodeImplementation(obj,fileName,options); |
|---|
| 89 | } |
|---|
| 90 | |
|---|
| 91 | ReaderWriter::WriteResult WriteFileCallback::writeShader(const osg::Shader& obj, const std::string& fileName,const Options* options) |
|---|
| 92 | { |
|---|
| 93 | return osgDB::Registry::instance()->writeShaderImplementation(obj,fileName,options); |
|---|
| 94 | } |
|---|