/* ====================================================== */ /* HIERARCHY.H */ /* ====================================================== */ /* --------------------------------------------------------------------------- */ /* TYPEDEFS */ typedef struct node_struct { float scale[3]; float rot[3]; float tran[3]; struct link_struct *linkPtr; matrix shape; char *materialPtr; void (*dataPtr)(); } node_td; typedef struct link_struct { float articulate_axis[3]; float articulate_angle; float locate_rot[3]; float locate_tran[3]; float locate_scale[3]; struct node_struct *nodePtr; struct link_struct *linkPtr; matrix articulator; matrix locator; } link_td; /* --------------------------------------------------------------------------- */ /* PROTOTYPES */ void *setupHierarchy(); void traverse_hierarchy();