15 #include <osg/ref_ptr>
16 #include <osg/Texture>
17 #include <boost/unordered_set.hpp>
18 #include <boost/unordered_map.hpp>
19 #include <boost/thread.hpp>
32 template <
typename OsgObject>
37 typedef boost::unordered_map<std::string,osg::ref_ptr<OsgObject> >
69 osg::ref_ptr<OsgObject>
find(
const std::string&
filename);
73 void insert(
const std::string& name,
const osg::ref_ptr<OsgObject>& obj);
86 osg::Texture::FilterMode minFilter,osg::Texture::FilterMode magFilter,
87 osg::Texture::WrapMode s, osg::Texture::WrapMode t, osg::ref_ptr<osg::Texture>& texture,
88 bool unloadImageDataFlag,
bool compressTexturesFlag,
const std::string& alternateFilename =
"");
93 osg::Texture::FilterMode minFilter,osg::Texture::FilterMode magFilter,
94 osg::Texture::WrapMode s, osg::Texture::WrapMode t, osg::ref_ptr<osg::Texture>& texture);
99 osg::ref_ptr<osg::Texture> texture,
bool unloadImageDataFlag,
bool compressTexturesFlag, std::string alternateFilename =
"");
104 unsigned int flush();
108 unsigned int partialFlush(
unsigned int maxToCheck,
unsigned int maxToFlush);
124 bool operator()(
const std::pair<std::string,OsgObject*>& ref)
126 return ref.first ==
myStr;