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> >
65 bool find(
const std::string& name, osg::ref_ptr<OsgObject>&
object );
69 void insert(
const std::string& name,
const osg::ref_ptr<OsgObject>& obj);
78 osg::ref_ptr<OsgObject>
find(
const std::string&
filename);
84 osg::Texture::FilterMode minFilter,osg::Texture::FilterMode magFilter,
85 osg::Texture::WrapMode s, osg::Texture::WrapMode t, osg::ref_ptr<osg::Texture>& texture,
86 bool unloadImageDataFlag,
bool compressTexturesFlag,
const std::string& alternateFilename =
"");
91 osg::Texture::FilterMode minFilter,osg::Texture::FilterMode magFilter,
92 osg::Texture::WrapMode s, osg::Texture::WrapMode t, osg::ref_ptr<osg::Texture>& texture);
97 osg::ref_ptr<osg::Texture> texture,
bool unloadImageDataFlag,
bool compressTexturesFlag, std::string alternateFilename =
"");
102 unsigned int flush();
106 unsigned int partialFlush(
unsigned int maxToCheck,
unsigned int maxToFlush);
118 bool operator()(
const std::pair<std::string,OsgObject*>& ref)
120 return ref.first ==
myStr;