1 #ifndef OPENMW_MWRENDER_EFFECTMANAGER_H
2 #define OPENMW_MWRENDER_EFFECTMANAGER_H
9 #include <boost/shared_ptr.hpp>
15 class PositionAttitudeTransform;
25 class EffectAnimationTime;
36 void addEffect (
const std::string& model,
const std::string& textureOverride,
const osg::Vec3f& worldPosition,
float scale,
bool isMagicVFX =
true);
Wrapper class that constructs and provides access to the most commonly used resource subsystems...
Definition: resourcesystem.hpp:24
Definition: effectmanager.hpp:44
float mMaxControllerLength
Definition: effectmanager.hpp:46
Definition: effectmanager.hpp:29
std::map< osg::ref_ptr< osg::PositionAttitudeTransform >, Effect > EffectMap
Definition: effectmanager.hpp:50
void addEffect(const std::string &model, const std::string &textureOverride, const osg::Vec3f &worldPosition, float scale, bool isMagicVFX=true)
Add an effect. When it's finished playing, it will be removed automatically.
Definition: effectmanager.cpp:28
boost::shared_ptr< EffectAnimationTime > mAnimTime
Definition: effectmanager.hpp:47
EffectMap mEffects
Definition: effectmanager.hpp:51
void clear()
Remove all effects.
Definition: effectmanager.cpp:76
~EffectManager()
Definition: effectmanager.cpp:23
Resource::ResourceSystem * mResourceSystem
Definition: effectmanager.hpp:54
EffectManager(osg::ref_ptr< osg::Group > parent, Resource::ResourceSystem *resourceSystem)
Definition: effectmanager.cpp:17
void operator=(const EffectManager &)
void update(float dt)
Definition: effectmanager.cpp:60
osg::ref_ptr< osg::Group > mParentNode
Definition: effectmanager.hpp:53