Пример #1
0
Bone* Bone_create (BoneData* data, Bone* parent) {
	Bone* self = NEW(Bone);
	CONST_CAST(BoneData*, self->data) = data;
	CONST_CAST(Bone*, self->parent) = parent;
	Bone_setToSetupPose(self);
	return self;
}
Пример #2
0
void Skeleton_setBonesToSetupPose (const Skeleton* self) {
	int i;
	for (i = 0; i < self->boneCount; ++i)
		Bone_setToSetupPose(self->bones[i]);
}