OGRE
13.6
Object-Oriented Graphics Rendering Engine
|
Class for serialising skeleton data to/from an OGRE .skeleton file. More...
#include <OgreSkeletonSerializer.h>
Public Member Functions | |
SkeletonSerializer () | |
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 () | |
~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::SkeletonSerializer::SkeletonSerializer | ( | ) |
void Ogre::SkeletonSerializer::exportSkeleton | ( | const Skeleton * | pSkeleton, |
const String & | filename, | ||
SkeletonVersion | ver = SKELETON_VERSION_LATEST , |
||
Endian | endianMode = ENDIAN_NATIVE |
||
) |
Exports a skeleton to the file specified.
void Ogre::SkeletonSerializer::exportSkeleton | ( | const Skeleton * | pSkeleton, |
DataStreamPtr | stream, | ||
SkeletonVersion | ver = SKELETON_VERSION_LATEST , |
||
Endian | endianMode = ENDIAN_NATIVE |
||
) |
Exports a skeleton to the stream specified.
void Ogre::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. |