15 #ifndef OSGFX_REGISTRY_
16 #define OSGFX_REGISTRY_
18 #include <osgFX/Export>
19 #include <osgFX/Effect>
21 #include <osg/ref_ptr>
47 typedef std::map<std::string, osg::ref_ptr<const Effect> >
EffectMap;
51 inline void registerEffect(
const Effect* effect);
53 inline void removeEffect(
const Effect* effect);
55 inline const EffectMap& getEffectMap()
const;
83 EffectMap::iterator itr = _effects.find(effect->
effectName());
84 if (itr != _effects.end())
void registerEffect(const Effect *effect)
Proxy(const Effect *effect)
void removeEffect(const Effect *effect)
static Registry * instance()
const EffectMap & getEffectMap() const
virtual const char * effectName() const =0
std::map< std::string, osg::ref_ptr< const Effect > > EffectMap