OpenMW
|
#include <effectmanager.hpp>
Classes | |
struct | Effect |
Public Member Functions | |
EffectManager (osg::ref_ptr< osg::Group > parent, Resource::ResourceSystem *resourceSystem) | |
~EffectManager () | |
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. More... | |
void | update (float dt) |
void | clear () |
Remove all effects. More... | |
Private Types | |
typedef std::map< osg::ref_ptr < osg::PositionAttitudeTransform > , Effect > | EffectMap |
Private Member Functions | |
EffectManager (const EffectManager &) | |
void | operator= (const EffectManager &) |
Private Attributes | |
EffectMap | mEffects |
osg::ref_ptr< osg::Group > | mParentNode |
Resource::ResourceSystem * | mResourceSystem |
|
private |
MWRender::EffectManager::EffectManager | ( | osg::ref_ptr< osg::Group > | parent, |
Resource::ResourceSystem * | resourceSystem | ||
) |
MWRender::EffectManager::~EffectManager | ( | ) |
|
private |
void MWRender::EffectManager::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.
void MWRender::EffectManager::clear | ( | ) |
Remove all effects.
|
private |
void MWRender::EffectManager::update | ( | float | dt | ) |
|
private |
|
private |
|
private |