On 5/3/07, Schmidt, Richard, SDGE1 <[EMAIL PROTECTED]> wrote:

 Hi,

How do I remove files explicitly from the osgDB cache?


To clear the cache there is :
osgDB::Registry::instance()->clearObjectCache();

But I don't think that you have a method to explicitily remove one object.
You can also try :

osgDB::Registry::instance()->updateTimeStampOfObjectsInCacheWithExtenalReferences(currentFrameTime);
osgDB::Registry::instance()->removeExpiredObjectsInCache(expiryTime);

It is used in the DatabasePager to remove expired objects.

--
Serge Lages
http://www.magrathea-engine.org
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to