|
WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
|
Manages loaded WoW model instances, providing animation reset, emitter update, and cleanup. More...
#include <ModelManager.h>
Public Member Functions | |
| int | add (GameFile *) |
| Add a model from the given game file and return its handle. | |
| ModelManager () | |
| void | resetAnim () |
| Reset animations on all managed models. | |
| void | updateEmitters (float dt) |
| Update particle and ribbon emitters on all managed models. | |
| void | clear () |
| Remove and destroy all managed models. | |
Public Member Functions inherited from SimpleManager | |
| SimpleManager () | |
Public Member Functions inherited from Manager< int > | |
| Manager ()=default | |
| ~Manager () | |
| virtual void | del (int id) |
| void | delbyname (const std::string &name) |
| virtual void | doDelete (int) |
| bool | has (const std::string &name) |
| int | get (const std::string &name) |
| std::string | get (int id) |
| void | clear () |
| void | dump () |
Public Attributes | |
| int | v |
| Internal version counter. | |
Public Attributes inherited from Manager< int > | |
| std::map< std::string, int > | names |
| std::map< int, ManagedItem * > | items |
Additional Inherited Members | |
Protected Member Functions inherited from SimpleManager | |
| int | nextID () |
Protected Member Functions inherited from Manager< int > | |
| void | do_add (const std::string &name, int id, ManagedItem *item) |
Manages loaded WoW model instances, providing animation reset, emitter update, and cleanup.
Definition at line 6 of file ModelManager.h.
|
inline |
Definition at line 12 of file ModelManager.h.
|
virtual |
Add a model from the given game file and return its handle.
Implements Manager< int >.
Definition at line 5 of file ModelManager.cpp.
| void ModelManager::clear | ( | ) |
Remove and destroy all managed models.
Definition at line 40 of file ModelManager.cpp.
| void ModelManager::resetAnim | ( | ) |
Reset animations on all managed models.
Definition at line 23 of file ModelManager.cpp.
| void ModelManager::updateEmitters | ( | float | dt | ) |
Update particle and ribbon emitters on all managed models.
Definition at line 32 of file ModelManager.cpp.
| int ModelManager::v |
Internal version counter.
Definition at line 16 of file ModelManager.h.