WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
Attachment.h
Go to the documentation of this file.
1/*
2 * Attachment.h
3 *
4 * Created on: 26 oct. 2013
5 *
6 */
7
8#pragma once
9
10#include <string>
11#include <vector>
12
13class Displayable;
14class WoWModel;
15
21{
22public:
25
26 void setup();
27 void setupParticle();
28 Attachment* addChild(std::string fn, int id, int slot);
29 Attachment* addChild(Displayable* disp, int id, int slot);
30 void delSlot(int slot);
31 void delChildren();
32
33 void draw();
34 void drawParticles();
35 void tick(float dt);
36
37 void setModel(Displayable* newmodel);
38 Displayable* model() const { return model_; }
39
41
42 std::vector<Attachment*> children;
43
44 int id;
45 int slot;
46
47private:
49};
Scene-graph node that attaches a Displayable to a parent bone slot.
Definition Attachment.h:21
void setupParticle()
std::vector< Attachment * > children
Definition Attachment.h:42
void delSlot(int slot)
Displayable * model_
Definition Attachment.h:48
Attachment * parent
Definition Attachment.h:40
void setModel(Displayable *newmodel)
Displayable * model() const
Definition Attachment.h:38
Attachment * addChild(std::string fn, int id, int slot)
void setup()
void tick(float dt)
void delChildren()
void drawParticles()
void draw()
Interface for objects that can be drawn and animated in the scene.
Definition displayable.h:9
Core WoW .m2 model: geometry, animation, textures, and character data.
Definition WoWModel.h:50