WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
ModelLoader.h File Reference
#include <string>
#include <vector>
Include dependency graph for ModelLoader.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  ModelLoader
 

Functions

std::string ModelLoader::wstringToString (const std::wstring &ws)
 Convert a wide string to narrow ASCII (lossy, for display only).
 
WoWModelModelLoader::getLoadedModel (AppState &app)
 Return the currently loaded WoWModel (first child of root), or nullptr.
 
void ModelLoader::resetCameraToModel (OrbitCamera &camera, const WoWModel *model, float fov)
 Reset the orbit camera to frame the given model.
 
void ModelLoader::applySkin (WoWModel *model, int skinIndex, AppState &app)
 Apply a creature / item skin variant to the model.
 
void ModelLoader::initAnimationControl (WoWModel *model, AppState &app)
 Populate app.animEntries / app.skinEntries from the model.
 
void ModelLoader::initCharacterControl (WoWModel *model, AppState &app)
 Populate app.customizationOptions from the model's ChrCustomization DB.
 
void ModelLoader::initModelControl (WoWModel *model, AppState &app)
 Populate app.geosetGroups and app.pcrState from the model.
 
void ModelLoader::loadModel (GameFile *file, AppState &app, float fov)
 Load a .m2 GameFile, create a WoWModel, attach to root, init controls.
 
void ModelLoader::clearModel (AppState &app)
 Tear down the current model and reset related state.
 
void ModelLoader::rebuildEquipFilteredItems (AppState &app, const ItemDatabase &db)
 
void ModelLoader::tryToEquipItem (WoWModel *model, int id, AppState &app, const ItemDatabase &db)
 
void ModelLoader::buildItemSets (AppState &app)
 
void ModelLoader::rebuildItemSetFilter (AppState &app)
 
void ModelLoader::applyItemSet (WoWModel *model, int setId, AppState &app, const ItemDatabase &db)
 
void ModelLoader::buildStartOutfits (WoWModel *model, AppState &app)
 
void ModelLoader::rebuildStartOutfitFilter (AppState &app)
 
void ModelLoader::applyStartOutfit (WoWModel *model, int outfitId, AppState &app, const ItemDatabase &db)
 
void ModelLoader::rebuildNpcFilter (AppState &app, const std::vector< NPCRecord > &npcList)
 
void ModelLoader::loadNPC (unsigned int creatureID, AppState &app, float fov)
 
void ModelLoader::rebuildItemBrowseFilter (AppState &app, const ItemDatabase &db)
 
void ModelLoader::loadItemModel (unsigned int itemId, AppState &app, float fov)
 
void ModelLoader::buildMountList (AppState &app)
 
void ModelLoader::rebuildMountFilter (AppState &app)
 
void ModelLoader::mountCharacter (int displayID, GameFile *creatureFile, AppState &app, float fov)
 
void ModelLoader::dismountCharacter (AppState &app, float fov)