Added Options support to ImageSequence LOAD_* functionality

This commit is contained in:
Robert Osfield
2013-01-18 17:11:49 +00:00
parent 5fb8cd6a9c
commit 83f9d0f3e6
4 changed files with 7 additions and 6 deletions

View File

@@ -323,9 +323,10 @@ int ImagePager::cancel()
return result;
}
osg::Image* ImagePager::readImageFile(const std::string& fileName)
osg::Image* ImagePager::readImageFile(const std::string& fileName, const osg::Referenced* options)
{
return osgDB::readImageFile(fileName);
osgDB::Options* readOptions = dynamic_cast<osgDB::Options*>(const_cast<osg::Referenced*>(options));
return osgDB::readImageFile(fileName, readOptions);
}
void ImagePager::requestImageFile(const std::string& fileName, osg::Object* attachmentPoint, int attachmentIndex, double timeToMergeBy, const osg::FrameStamp* framestamp, osg::ref_ptr<osg::Referenced>& imageRequest, const osg::Referenced* options)