12 #include <osg/ref_ptr>
13 #include <osg/Texture>
14 #include <boost/unordered_set.hpp>
15 #include <boost/unordered_map.hpp>
16 #include <boost/thread.hpp>
29 template <
typename OsgObject>
34 typedef boost::unordered_map<std::string,osg::ref_ptr<OsgObject> >
66 osg::ref_ptr<OsgObject>
find(
const std::string&
filename);
70 void insert(
const std::string& name,
const osg::ref_ptr<OsgObject>& obj);
83 osg::Texture::FilterMode minFilter,osg::Texture::FilterMode magFilter,
84 osg::Texture::WrapMode s, osg::Texture::WrapMode t, osg::ref_ptr<osg::Texture>& texture,
85 bool unloadImageDataFlag,
bool compressTexturesFlag,
const std::string& alternateFilename =
"");
90 osg::Texture::FilterMode minFilter,osg::Texture::FilterMode magFilter,
91 osg::Texture::WrapMode s, osg::Texture::WrapMode t,
bool compressedTexturesFlag, osg::ref_ptr<osg::Texture>& texture);
96 osg::ref_ptr<osg::Texture> texture,
bool unloadImageDataFlag,
bool compressTexturesFlag, std::string alternateFilename =
"");
101 unsigned int flush();
105 unsigned int partialFlush(
unsigned int maxToCheck,
unsigned int maxToFlush);
121 bool operator()(
const std::pair<std::string,OsgObject*>& ref)
123 return ref.first ==
myStr;