Hi Nick,
Is this what you are looking for?
<snip>
osgDB::ReaderWriter::Options* opt =
osgDB::Registry::instance()->getOptions();
if (nullptr == opt)
{
opt = new osgDB::ReaderWriter::Options();
}
//setup caching
osgDB::Options::CacheHintOptions opts;
opts = static_cast<osgDB::Options::CacheHintOptions>(opts
|osgDB::Options::CACHE_IMAGES);
opts = static_cast<osgDB::Options::CacheHintOptions>(opts
|osgDB::Options::CACHE_NODES);
opt->setObjectCacheHint(static_cast<osgDB::Options::CacheHintOptions>(opts));
osgDB::Registry::instance()->setOptions(opt);
</snip>
Hi Community,
what was the way to have textures cached and reused on load? any hint?
Thanks a bunch!
Nick
--
trajce nikolov nick
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org