|
Public Member Functions |
| | SkeletonSerializer () |
| virtual | ~SkeletonSerializer () |
| void | exportSkeleton (const Skeleton *pSkeleton, const String &filename) |
| | Exports a skeleton to the file specified.
|
| void | importSkeleton (DataStreamPtr &stream, Skeleton *pDest) |
| | Imports Skeleton and animation data from a .skeleton file DataStream.
|
Protected Member Functions |
| virtual void | writeFileHeader (void) |
| virtual void | writeChunkHeader (uint16 id, uint32 size) |
| void | writeFloats (const float *const pfloat, size_t count) |
| void | writeFloats (const double *const pfloat, size_t count) |
| void | writeShorts (const uint16 *const pShort, size_t count) |
| void | writeInts (const uint32 *const pInt, size_t count) |
| void | writeBools (const bool *const pLong, size_t count) |
| void | writeObject (const Vector3 &vec) |
| void | writeObject (const Quaternion &q) |
| void | writeString (const String &string) |
| void | writeData (const void *const buf, size_t size, size_t count) |
| virtual void | readFileHeader (DataStreamPtr &stream) |
| virtual unsigned short | readChunk (DataStreamPtr &stream) |
| void | readBools (DataStreamPtr &stream, bool *pDest, size_t count) |
| void | readFloats (DataStreamPtr &stream, float *pDest, size_t count) |
| void | readFloats (DataStreamPtr &stream, double *pDest, size_t count) |
| void | readShorts (DataStreamPtr &stream, uint16 *pDest, size_t count) |
| void | readInts (DataStreamPtr &stream, uint32 *pDest, size_t count) |
| void | readObject (DataStreamPtr &stream, Vector3 &pDest) |
| void | readObject (DataStreamPtr &stream, Quaternion &pDest) |
| String | readString (DataStreamPtr &stream) |
| String | readString (DataStreamPtr &stream, size_t numChars) |
| virtual void | flipToLittleEndian (void *pData, size_t size, size_t count=1) |
| virtual void | flipFromLittleEndian (void *pData, size_t size, size_t count=1) |
| virtual void | flipEndian (void *pData, size_t size, size_t count) |
| virtual void | flipEndian (void *pData, size_t size) |
Protected Attributes |
| uint32 | mCurrentstreamLen |
| FILE * | mpfFile |
| String | mVersion |
Private Member Functions |
| void | writeSkeleton (const Skeleton *pSkel) |
| void | writeBone (const Skeleton *pSkel, const Bone *pBone) |
| void | writeBoneParent (const Skeleton *pSkel, unsigned short boneId, unsigned short parentId) |
| void | writeAnimation (const Skeleton *pSkel, const Animation *anim) |
| void | writeAnimationTrack (const Skeleton *pSkel, const AnimationTrack *track) |
| void | writeKeyFrame (const Skeleton *pSkel, const KeyFrame *key) |
| void | writeSkeletonAnimationLink (const Skeleton *pSkel, const LinkedSkeletonAnimationSource &link) |
| void | readBone (DataStreamPtr &stream, Skeleton *pSkel) |
| void | readBoneParent (DataStreamPtr &stream, Skeleton *pSkel) |
| void | readAnimation (DataStreamPtr &stream, Skeleton *pSkel) |
| void | readAnimationTrack (DataStreamPtr &stream, Animation *anim, Skeleton *pSkel) |
| void | readKeyFrame (DataStreamPtr &stream, AnimationTrack *track, Skeleton *pSkel) |
| void | readSkeletonAnimationLink (DataStreamPtr &stream, Skeleton *pSkel) |
| size_t | calcBoneSize (const Skeleton *pSkel, const Bone *pBone) |
| size_t | calcBoneParentSize (const Skeleton *pSkel) |
| size_t | calcAnimationSize (const Skeleton *pSkel, const Animation *pAnim) |
| size_t | calcAnimationTrackSize (const Skeleton *pSkel, const AnimationTrack *pTrack) |
| size_t | calcKeyFrameSize (const Skeleton *pSkel, const KeyFrame *pKey) |
| size_t | calcSkeletonAnimationLinkSize (const Skeleton *pSkel, const LinkedSkeletonAnimationSource &link) |