![]() |
VR-Forces 4.8 Class Documentation
|
The effect manager provides a way of creating and sharing effects. More...
Public Member Functions | |
| DtEffectManager (const std::string &dataPath) | |
| CTOR. More... | |
| ~DtEffectManager () | |
| DTOR. More... | |
| void | releaseResources () |
| Release all resources. More... | |
| DtEffect * | createEffect (const std::string &effectName, DtEffectCreator::CreateParameters *params=0) const |
| Attempts to create a new effect using the given effect name. More... | |
| DtEffect * | findSharedEffect (const std::string &effectName, DtEffectCreator::CreateParameters *params=0) |
| Attempts to find a shared effect, if the shared effect is not yet created, it will attempt to create the effect. More... | |
| void | registerEffectCreator (const std::string &effectName, DtEffectCreator *creator) |
| Register an effect creator. More... | |
Protected Types | |
| typedef boost::unordered_map < std::string, DtEffectCreator * > | CreatorMap |
| typedef boost::unordered_map < std::string, DtEffect * > | EffectMap |
Protected Attributes | |
| CreatorMap | myEffectCreators |
| EffectMap | mySharedEffects |
| std::string | myDataPath |
The effect manager provides a way of creating and sharing effects.
|
protected |
|
protected |
| makVrv::DtEffectManager::DtEffectManager | ( | const std::string & | dataPath | ) |
CTOR.
| makVrv::DtEffectManager::~DtEffectManager | ( | ) |
DTOR.
| void makVrv::DtEffectManager::releaseResources | ( | ) |
Release all resources.
| DtEffect* makVrv::DtEffectManager::createEffect | ( | const std::string & | effectName, |
| DtEffectCreator::CreateParameters * | params = 0 |
||
| ) | const |
Attempts to create a new effect using the given effect name.
The effect object is not shared, and must be deallocated by the owner.
| DtEffect* makVrv::DtEffectManager::findSharedEffect | ( | const std::string & | effectName, |
| DtEffectCreator::CreateParameters * | params = 0 |
||
| ) |
Attempts to find a shared effect, if the shared effect is not yet created, it will attempt to create the effect.
The returned effect is shared and should not be deallocated.
| void makVrv::DtEffectManager::registerEffectCreator | ( | const std::string & | effectName, |
| DtEffectCreator * | creator | ||
| ) |
Register an effect creator.
If an effect creator was previously registered with the same name, it is first deleted.
|
protected |
|
protected |
|
protected |