WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
ModelAttachment.h
Go to the documentation of this file.
1/*
2 * ModelAttachment.h
3 *
4 * Created on: 20 oct. 2013
5 *
6 */
7
8#pragma once
9
10#include "modelheaders.h"
11
12#include "glm/glm.hpp"
13
14class GameFile;
15class WoWModel;
16
19{
20 int id;
21 glm::vec3 pos;
22 int bone;
24
26 void init(ModelAttachmentDef& mad);
28 void setup() const;
29};
Abstract base class representing a file within the game data archive.
Definition GameFile.h:12
Core WoW .m2 model: geometry, animation, textures, and character data.
Definition WoWModel.h:50
On-disk attachment point definition in an M2 file.
An attachment point on a WoW model (weapon, shoulder, helmet, etc.).
int bone
Index of the bone this attachment is parented to.
void init(ModelAttachmentDef &mad)
Initialise from an on-disk attachment definition.
void setup() const
Set up the attachment transform for rendering.
glm::vec3 pos
Position relative to the parent bone.
int id
Attachment slot ID (see POSITION_SLOTS).
WoWModel * model
The model this attachment belongs to.