mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
Fix character appearance, previews, mount seat, and online unequip
This commit is contained in:
parent
4a023e773b
commit
275914b4db
19 changed files with 743 additions and 113 deletions
|
|
@ -4,6 +4,8 @@
|
|||
#include <GL/glew.h>
|
||||
#include <memory>
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace wowee {
|
||||
namespace pipeline { class AssetManager; }
|
||||
|
|
@ -25,6 +27,9 @@ public:
|
|||
uint8_t hairStyle, uint8_t hairColor,
|
||||
uint8_t facialHair, bool useFemaleModel = false);
|
||||
|
||||
// Apply equipment overlays/geosets using SMSG_CHAR_ENUM equipment data (ItemDisplayInfo.dbc).
|
||||
bool applyEquipment(const std::vector<game::EquipmentItem>& equipment);
|
||||
|
||||
void update(float deltaTime);
|
||||
void render();
|
||||
void rotate(float yawDelta);
|
||||
|
|
@ -56,6 +61,16 @@ private:
|
|||
uint32_t instanceId_ = 0;
|
||||
bool modelLoaded_ = false;
|
||||
float modelYaw_ = 180.0f;
|
||||
|
||||
// Cached info from loadCharacter() for later recompositing.
|
||||
game::Race race_ = game::Race::HUMAN;
|
||||
game::Gender gender_ = game::Gender::MALE;
|
||||
bool useFemaleModel_ = false;
|
||||
uint8_t hairStyle_ = 0;
|
||||
uint8_t facialHair_ = 0;
|
||||
std::string bodySkinPath_;
|
||||
std::vector<std::string> baseLayers_; // face + underwear, etc.
|
||||
uint32_t skinTextureSlotIndex_ = 0;
|
||||
};
|
||||
|
||||
} // namespace rendering
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue