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 );
68 void insert(
const std::string& name,
const osg::ref_ptr<OsgObject>& obj);
77 osg::ref_ptr<OsgObject>
find(
const std::string& filename);
82 osg::Texture::FilterMode minFilter,osg::Texture::FilterMode magFilter,
83 osg::Texture::WrapMode s, osg::Texture::WrapMode t, osg::ref_ptr<osg::Texture>& texture);
88 osg::ref_ptr<osg::Texture> texture,
bool unloadImageDataFlag,
bool compressTexturesFlag, std::string alternateFilename =
"");
97 unsigned int partialFlush(
unsigned int maxToCheck,
unsigned int maxToFlush);
109 bool operator()(
const std::pair<std::string,OsgObject*>& ref)
111 return ref.first ==
myStr;