From b05b32d5f5d11ab2bdd06052262b286f9f89f471 Mon Sep 17 00:00:00 2001 From: Fatbag Date: Mon, 13 Feb 2012 20:55:44 -0600 Subject: [PATCH] libvitaboy: added missing file --- Libraries/libvitaboy/skel.cpp | 83 +++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 Libraries/libvitaboy/skel.cpp diff --git a/Libraries/libvitaboy/skel.cpp b/Libraries/libvitaboy/skel.cpp new file mode 100644 index 0000000..ba007aa --- /dev/null +++ b/Libraries/libvitaboy/skel.cpp @@ -0,0 +1,83 @@ +#include "libvitaboy.hpp" + +static unsigned bonenumber = 0; + +void ReadSkeleton(Skeleton_t& Skeleton){ + printf("\n========== Skeleton ==========\n"); + Skeleton.Version = VBFile.readint32(); + printf("Version: %u\n", Skeleton.Version); + Skeleton.Name = VBFile.readstring(); + printf("Name: %s\n", Skeleton.Name); + + Skeleton.BoneCount = VBFile.readint16(); + printf("BoneCount: %u\n", Skeleton.BoneCount); + Skeleton.Bones = (Bone_t*) malloc(Skeleton.BoneCount * sizeof(Bone_t)); + for(unsigned i=0; i