OGRE-Next
4.0.0unstable
Object-Oriented Graphics Rendering Engine
|
Class for serialising skeleton data to/from an OGRE .skeleton file. More...
#include <OgreSkeletonSerializer.h>
Public Member Functions | |
SkeletonSerializer () | |
~SkeletonSerializer () override | |
void | exportSkeleton (const Skeleton *pSkeleton, const String &filename, SkeletonVersion ver=SKELETON_VERSION_LATEST, Endian endianMode=ENDIAN_NATIVE) |
Exports a skeleton to the file specified. More... | |
void | exportSkeleton (const Skeleton *pSkeleton, DataStreamPtr stream, SkeletonVersion ver=SKELETON_VERSION_LATEST, Endian endianMode=ENDIAN_NATIVE) |
Exports a skeleton to the stream specified. More... | |
void | importSkeleton (DataStreamPtr &stream, Skeleton *pDest) |
Imports Skeleton and animation data from a .skeleton file DataStream. More... | |
Public Member Functions inherited from Ogre::Serializer | |
Serializer () | |
virtual | ~Serializer () |
Additional Inherited Members | |
Public Types inherited from Ogre::Serializer | |
enum | Endian { ENDIAN_NATIVE , ENDIAN_BIG , ENDIAN_LITTLE } |
The endianness of written files. More... | |
Class for serialising skeleton data to/from an OGRE .skeleton file.
Ogre::v1::SkeletonSerializer::SkeletonSerializer | ( | ) |
|
override |
void Ogre::v1::SkeletonSerializer::exportSkeleton | ( | const Skeleton * | pSkeleton, |
const String & | filename, | ||
SkeletonVersion | ver = SKELETON_VERSION_LATEST , |
||
Endian | endianMode = ENDIAN_NATIVE |
||
) |
Exports a skeleton to the file specified.
pSkeleton | Weak reference to the Skeleton to export |
filename | The destination filename |
endianMode | The endian mode to write in |
void Ogre::v1::SkeletonSerializer::exportSkeleton | ( | const Skeleton * | pSkeleton, |
DataStreamPtr | stream, | ||
SkeletonVersion | ver = SKELETON_VERSION_LATEST , |
||
Endian | endianMode = ENDIAN_NATIVE |
||
) |
void Ogre::v1::SkeletonSerializer::importSkeleton | ( | DataStreamPtr & | stream, |
Skeleton * | pDest | ||
) |
Imports Skeleton and animation data from a .skeleton file DataStream.
stream | The DataStream holding the .skeleton data. Must be initialised (pos at the start of the buffer). |
pDest | Weak reference to the Skeleton object which will receive the data. Should be blank already. |