spSlot* spSlot_create (spSlotData* data, spBone* bone) { spSlot* self = SUPER(NEW(_spSlot)); CONST_CAST(spSlotData*, self->data) = data; CONST_CAST(spBone*, self->bone) = bone; spSlot_setToSetupPose(self); return self; }
void spSkeleton_setSlotsToSetupPose (const spSkeleton* self) { int i; memcpy(self->drawOrder, self->slots, self->slotCount * sizeof(spSlot*)); for (i = 0; i < self->slotCount; ++i) spSlot_setToSetupPose(self->slots[i]); }