17 #ifndef OPENMW_COMPONENTS_RESOURCE_OBJECTCACHE
18 #define OPENMW_COMPONENTS_RESOURCE_OBJECTCACHE
20 #include <osg/Referenced>
21 #include <osg/ref_ptr>
71 void accept(osg::NodeVisitor& nv);
void removeFromObjectCache(const std::string &fileName)
Definition: objectcache.cpp:97
std::pair< osg::ref_ptr< osg::Object >, double > ObjectTimeStampPair
Definition: objectcache.hpp:77
std::map< std::string, ObjectTimeStampPair > ObjectCacheMap
Definition: objectcache.hpp:78
ObjectCacheMap _objectCache
Definition: objectcache.hpp:80
void addEntryToObjectCache(const std::string &filename, osg::Object *object, double timestamp=0.0)
Definition: objectcache.cpp:35
void accept(osg::NodeVisitor &nv)
Definition: objectcache.cpp:123
ObjectCache()
Definition: objectcache.cpp:26
Definition: objectcache.hpp:35
void updateTimeStampOfObjectsInCacheWithExternalReferences(double referenceTime)
Definition: objectcache.cpp:52
virtual ~ObjectCache()
Definition: objectcache.cpp:31
State
Definition: state.hpp:6
void releaseGLObjects(osg::State *state)
Definition: objectcache.cpp:110
void clear()
Definition: objectcache.cpp:104
OpenThreads::Mutex _objectCacheMutex
Definition: objectcache.hpp:81
void removeExpiredObjectsInCache(double expiryTime)
Definition: objectcache.cpp:70
osg::ref_ptr< osg::Object > getRefFromObjectCache(const std::string &fileName)
Definition: objectcache.cpp:41