Object* osgDB::readObjectFile(const std::string& filename,const Options* options) { ReaderWriter::ReadResult rr = Registry::instance()->readObject(filename,options); if (rr.validObject()) return rr.takeObject(); if (rr.error()) OSG_WARN << rr.message() << std::endl; return NULL; }
osg::ref_ptr<osg::Object> osgDB::readRefObjectFile(const std::string& filename,const ReaderWriter::Options* options) { ReaderWriter::ReadResult rr = Registry::instance()->readObject(filename,options); if (rr.validObject()) return osg::ref_ptr<osg::Object>(rr.getObject()); if (rr.error()) notify(WARN) << rr.message() << std::endl; return NULL; }