WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
ModelAttachment Struct Reference

An attachment point on a WoW model (weapon, shoulder, helmet, etc.). More...

#include <ModelAttachment.h>

Collaboration diagram for ModelAttachment:
[legend]

Public Member Functions

void init (ModelAttachmentDef &mad)
 Initialise from an on-disk attachment definition.
 
void setup () const
 Set up the attachment transform for rendering.
 

Public Attributes

int id
 Attachment slot ID (see POSITION_SLOTS).
 
glm::vec3 pos
 Position relative to the parent bone.
 
int bone
 Index of the bone this attachment is parented to.
 
WoWModelmodel
 The model this attachment belongs to.
 

Detailed Description

An attachment point on a WoW model (weapon, shoulder, helmet, etc.).

Definition at line 18 of file ModelAttachment.h.

Member Function Documentation

◆ init()

void ModelAttachment::init ( ModelAttachmentDef mad)

Initialise from an on-disk attachment definition.

Definition at line 8 of file ModelAttachment.cpp.

Here is the caller graph for this function:

◆ setup()

void ModelAttachment::setup ( ) const

Set up the attachment transform for rendering.

Definition at line 15 of file ModelAttachment.cpp.

Member Data Documentation

◆ bone

int ModelAttachment::bone

Index of the bone this attachment is parented to.

Definition at line 22 of file ModelAttachment.h.

◆ id

int ModelAttachment::id

Attachment slot ID (see POSITION_SLOTS).

Definition at line 20 of file ModelAttachment.h.

◆ model

WoWModel* ModelAttachment::model

The model this attachment belongs to.

Definition at line 23 of file ModelAttachment.h.

◆ pos

glm::vec3 ModelAttachment::pos

Position relative to the parent bone.

Definition at line 21 of file ModelAttachment.h.


The documentation for this struct was generated from the following files: