Changeset 2335
- Timestamp:
- 10/01/03 15:12:25
- Files:
-
- OpenSceneGraph/trunk/include/osgDB/Registry (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgDB/Registry.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
OpenSceneGraph/trunk/include/osgDB/Registry
r2166 r2335 191 191 /** Remove all objects in the cache regardless of having external references or expiry times.*/ 192 192 void clearObjectCache(); 193 194 void addEntryToObjectCache(const std::string& filename, osg::Object* object, double timestamp = 0.0); 193 195 194 196 /** get the attached library with specified name.*/ OpenSceneGraph/trunk/src/osgDB/Registry.cpp
r2268 r2335 1166 1166 // update cache with new entry. 1167 1167 notify(INFO)<<"Adding to cache object "<<file<<std::endl; 1168 _objectCache[file]=ObjectTimeStampPair(rr.getObject(),0.0f);1168 addEntryToObjectCache(file,rr.getObject()); 1169 1169 } 1170 1170 … … 1304 1304 // update cache with new entry. 1305 1305 notify(INFO)<<"Adding to cache image "<<file<<std::endl; 1306 _objectCache[file]=ObjectTimeStampPair(rr.getObject(),0.0f);1306 addEntryToObjectCache(file,rr.getObject()); 1307 1307 } 1308 1308 … … 1457 1457 // update cache with new entry. 1458 1458 notify(INFO)<<"Adding to cache node "<<file<<std::endl; 1459 _objectCache[file]=ObjectTimeStampPair(rr.getObject(),0.0f);1459 addEntryToObjectCache(file,rr.getObject()); 1460 1460 } 1461 1461 … … 1548 1548 } 1549 1549 1550 void Registry::addEntryToObjectCache(const std::string& filename, osg::Object* object, double timestamp) 1551 { 1552 _objectCache[filename]=ObjectTimeStampPair(object,timestamp); 1553 } 1554 1550 1555 void Registry::updateTimeStampOfObjectsInCacheWithExtenalReferences(double currentTime) 1551 1556 {
