1 #ifndef OPENMW_COMPONENTS_MULTIOBJECTCACHE_H
2 #define OPENMW_COMPONENTS_MULTIOBJECTCACHE_H
8 #include <osg/Referenced>
38 typedef std::multimap<std::string, osg::ref_ptr<osg::Object> >
ObjectCacheMap;
ObjectCacheMap _objectCache
Definition: multiobjectcache.hpp:40
void addEntryToObjectCache(const std::string &filename, osg::Object *object)
Definition: multiobjectcache.cpp:46
~MultiObjectCache()
Definition: multiobjectcache.cpp:15
OpenThreads::Mutex _objectCacheMutex
Definition: multiobjectcache.hpp:41
Cache for "non reusable" objects.
Definition: multiobjectcache.hpp:20
osg::ref_ptr< osg::Object > takeFromObjectCache(const std::string &fileName)
Definition: multiobjectcache.cpp:52
State
Definition: state.hpp:6
void releaseGLObjects(osg::State *state)
Definition: multiobjectcache.cpp:66
void removeUnreferencedObjectsInCache()
Definition: multiobjectcache.cpp:20
MultiObjectCache()
Definition: multiobjectcache.cpp:10
std::multimap< std::string, osg::ref_ptr< osg::Object > > ObjectCacheMap
Definition: multiobjectcache.hpp:38