14 : parent(parent), id(id), slot(slot), model_(nullptr)
97 if (modelfn.length() == 0 || Id < 0)
111 LOG_INFO <<
"Attach on id" << Id <<
"slot" << Slot;
112 auto* att =
new Attachment(
this, disp, Id, Slot);
131 for (
size_t i = 0; i <
children.size(); i++)
Scene-graph node that attaches a Displayable to a parent bone slot.
std::vector< Attachment * > children
void setModel(Displayable *newmodel)
Displayable * model() const
Attachment * addChild(std::string fn, int id, int slot)
Attachment(Attachment *parent, Displayable *model, int id, int slot)
Interface for objects that can be drawn and animated in the scene.
virtual void setupAtt2(int)
virtual void setupAtt(int)
Core WoW .m2 model: geometry, animation, textures, and character data.