#ifndef OPENMW_MWRENDER_EFFECTMANAGER_H #define OPENMW_MWRENDER_EFFECTMANAGER_H #include namespace MWRender { // Note: effects attached to another object should be managed by MWRender::Animation::addEffect. // This class manages "free" effects, i.e. attached to a dedicated scene node in the world. class EffectManager { public: EffectManager(Ogre::SceneManager* sceneMgr); ~EffectManager() { clear(); } /// Add an effect. When it's finished playing, it will be removed automatically. void addEffect (const std::string& model, std::string textureOverride, const Ogre::Vector3& worldPosition); void update(float dt); /// Remove all effects void clear(); private: std::vector > mEffects; Ogre::SceneManager* mSceneMgr; }; } #endif