|
WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
|
#include "ModelLoader.h"#include "AppState.h"#include <algorithm>#include <cstring>#include <format>#include <map>#include <set>#include <string>#include <vector>#include "Logger.h"#include "Game.h"#include "WoWModel.h"#include "Attachment.h"#include "WoWItem.h"#include "CharDetails.h"#include "RaceInfos.h"#include "TextureManager.h"#include "database.h"#include "DB2Table.h"#include "string_utils.h"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). | |
| WoWModel * | ModelLoader::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. | |
| static bool | ModelLoader::correctType (int type, int slot) |
| 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::clearModel (AppState &app) |
| Tear down the current model and reset related state. | |
| void | ModelLoader::loadModel (GameFile *file, AppState &app, float fov) |
| Load a .m2 GameFile, create a WoWModel, attach to root, init controls. | |
| 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) |