OGRE 14.3
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 DataStreamPtr &stream, SkeletonVersion ver=SKELETON_VERSION_LATEST, Endian endianMode=ENDIAN_NATIVE) |
Exports a skeleton to the stream specified. | |
void | exportSkeleton (const Skeleton *pSkeleton, const String &filename, SkeletonVersion ver=SKELETON_VERSION_LATEST, Endian endianMode=ENDIAN_NATIVE) |
Exports a skeleton to the file specified. | |
void | importSkeleton (DataStreamPtr &stream, Skeleton *pDest) |
Imports Skeleton and animation data from a .skeleton file DataStream. | |
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.
This class allows exporters to write OGRE .skeleton files easily, and allows the OGRE engine to import .skeleton files into instantiated OGRE Skeleton objects. Note that a .skeleton file includes not only the Skeleton, but also definitions of any Animations it uses.
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.
This method takes an externally created Skeleton object, and exports both it and animations it uses to a .skeleton file.
void Ogre::SkeletonSerializer::exportSkeleton | ( | const Skeleton * | pSkeleton, |
const DataStreamPtr & | stream, | ||
SkeletonVersion | ver = SKELETON_VERSION_LATEST , |
||
Endian | endianMode = ENDIAN_NATIVE |
||
) |
Exports a skeleton to the stream specified.
This method takes an externally created Skeleton object, and exports both it and animations it uses to a .skeleton file.
void Ogre::SkeletonSerializer::importSkeleton | ( | DataStreamPtr & | stream, |
Skeleton * | pDest | ||
) |
Imports Skeleton and animation data from a .skeleton file DataStream.
This method imports data from a DataStream opened from a .skeleton file and places it's contents into the Skeleton object which is passed in.
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. |