Ogre::MeshSerializerImpl Class Reference
Core » Resources

Internal implementation of Mesh reading / writing for the latest version of the .mesh format. More...

`#include <OgreMeshSerializerImpl.h>`

Inheritance diagram for Ogre::MeshSerializerImpl:
[legend]

## Public Types

enum | Endian { ENDIAN_NATIVE, ENDIAN_BIG, ENDIAN_LITTLE }
| The endianness of written files. More...

## Public Member Functions

| MeshSerializerImpl ()
virtual | ~MeshSerializerImpl ()
void | exportMesh (const Mesh *pMesh, DataStreamPtr stream, Endian endianMode=ENDIAN_NATIVE)
| Exports a mesh to the file specified. More...
void | importMesh (DataStreamPtr &stream, Mesh *pDest, MeshSerializerListener *listener)
| Imports Mesh and (optionally) Material data from a .mesh file DataStream. More...
void | operator delete (void *ptr)
void | operator delete (void *ptr, void *)
void | operator delete (void *ptr, const char *, int, const char *)
void | operator delete[] (void *ptr)
void | operator delete[] (void *ptr, const char *, int, const char *)
void * | operator new (size_t sz, const char *file, int line, const char *func)
| operator new, with debug line info More...
void * | operator new (size_t sz)
void * | operator new (size_t sz, void *ptr)
| placement operator new More...
void * | operator new[] (size_t sz, const char *file, int line, const char *func)
| array operator new, with debug line info More...
void * | operator new[] (size_t sz)

## Protected Member Functions

virtual size_t | calcAnimationSize (const Animation *anim)
virtual size_t | calcAnimationsSize (const Mesh *pMesh)
virtual size_t | calcAnimationTrackSize (const VertexAnimationTrack *track)
virtual size_t | calcBoneAssignmentSize (void)
virtual size_t | calcEdgeGroupSize (const EdgeData::EdgeGroup &group)
virtual size_t | calcEdgeListLodSize (const EdgeData *data, bool isManual)
virtual size_t | calcEdgeListSize (const Mesh *pMesh)
virtual size_t | calcGeometrySize (const VertexData *pGeom)
virtual size_t | calcMeshSize (const Mesh *pMesh)
virtual size_t | calcMorphKeyframeSize (const VertexMorphKeyFrame *kf, size_t vertexCount)
virtual size_t | calcPoseKeyframePoseRefSize (void)
virtual size_t | calcPoseKeyframeSize (const VertexPoseKeyFrame *kf)
virtual size_t | calcPoseSize (const Pose *pose)
virtual size_t | calcPosesSize (const Mesh *pMesh)
virtual size_t | calcPoseVertexSize (const Pose *pose)
virtual size_t | calcSkeletonLinkSize (const String &skelName)
virtual size_t | calcSubMeshNameTableSize (const Mesh *pMesh)
virtual size_t | calcSubMeshOperationSize (const SubMesh *pSub)
virtual size_t | calcSubMeshSize (const SubMesh *pSub)
virtual size_t | calcSubMeshTextureAliasesSize (const SubMesh *pSub)
virtual void | determineEndianness (DataStreamPtr &stream)
| Determine the endianness of the incoming stream compared to native. More...
virtual void | determineEndianness (Endian requestedEndian)
| Determine the endianness to write with based on option. More...
virtual void | flipEndian (void *pData, size_t size, size_t count)
virtual void | flipEndian (void *pData, size_t size)
virtual void | flipEndian (void *pData, size_t vertexCount, size_t vertexSize, const VertexDeclaration::VertexElementList &elems)
| Flip the endianness of an entire vertex buffer, passed in as a pointer to locked or temporary memory. More...
virtual void | flipFromLittleEndian (void *pData, size_t size, size_t count=1)
virtual void | flipFromLittleEndian (void *pData, size_t vertexCount, size_t vertexSize, const VertexDeclaration::VertexElementList &elems)
| Flip an entire vertex buffer from little endian. More...
virtual void | flipToLittleEndian (void *pData, size_t size, size_t count=1)
virtual void | flipToLittleEndian (void *pData, size_t vertexCount, size_t vertexSize, const VertexDeclaration::VertexElementList &elems)
| Flip an entire vertex buffer to little endian. More...
virtual void | readAnimation (DataStreamPtr &stream, Mesh *pMesh)
virtual void | readAnimations (DataStreamPtr &stream, Mesh *pMesh)
virtual void | readAnimationTrack (DataStreamPtr &stream, Animation *anim, Mesh *pMesh)
void | readBools (DataStreamPtr &stream, bool *pDest, size_t count)
virtual void | readBoundsInfo (DataStreamPtr &stream, Mesh *pMesh)
virtual unsigned short | readChunk (DataStreamPtr &stream)
virtual void | readEdgeList (DataStreamPtr &stream, Mesh *pMesh)
virtual void | readEdgeListLodInfo (DataStreamPtr &stream, EdgeData *edgeData)
virtual void | readExtremes (DataStreamPtr &stream, Mesh *pMesh)
virtual void | readFileHeader (DataStreamPtr &stream)
void | readFloats (DataStreamPtr &stream, float *pDest, size_t count)
void | readFloats (DataStreamPtr &stream, double *pDest, size_t count)
virtual void | readGeometry (DataStreamPtr &stream, Mesh *pMesh, VertexData *dest)
virtual void | readGeometryVertexBuffer (DataStreamPtr &stream, Mesh *pMesh, VertexData *dest)
virtual void | readGeometryVertexDeclaration (DataStreamPtr &stream, Mesh *pMesh, VertexData *dest)
virtual void | readGeometryVertexElement (DataStreamPtr &stream, Mesh *pMesh, VertexData *dest)
void | readInts (DataStreamPtr &stream, uint32 *pDest, size_t count)
virtual void | readMesh (DataStreamPtr &stream, Mesh *pMesh, MeshSerializerListener *listener)
virtual void | readMeshBoneAssignment (DataStreamPtr &stream, Mesh *pMesh)
virtual void | readMeshLodInfo (DataStreamPtr &stream, Mesh *pMesh)
virtual void | readMeshLodUsageGenerated (DataStreamPtr &stream, Mesh *pMesh, unsigned short lodNum, MeshLodUsage &usage)
virtual void | readMeshLodUsageManual (DataStreamPtr &stream, Mesh *pMesh, unsigned short lodNum, MeshLodUsage &usage)
virtual void | readMorphKeyFrame (DataStreamPtr &stream, VertexAnimationTrack *track)
void | readObject (DataStreamPtr &stream, Vector3 &pDest)
void | readObject (DataStreamPtr &stream, Quaternion &pDest)
virtual void | readPose (DataStreamPtr &stream, Mesh *pMesh)
virtual void | readPoseKeyFrame (DataStreamPtr &stream, VertexAnimationTrack *track)
virtual void | readPoses (DataStreamPtr &stream, Mesh *pMesh)
void | readShorts (DataStreamPtr &stream, uint16 *pDest, size_t count)
virtual void | readSkeletonLink (DataStreamPtr &stream, Mesh *pMesh, MeshSerializerListener *listener)
String | readString (DataStreamPtr &stream)
String | readString (DataStreamPtr &stream, size_t numChars)
virtual void | readSubMesh (DataStreamPtr &stream, Mesh *pMesh, MeshSerializerListener *listener)
virtual void | readSubMeshBoneAssignment (DataStreamPtr &stream, Mesh *pMesh, SubMesh *sub)
virtual void | readSubMeshNameTable (DataStreamPtr &stream, Mesh *pMesh)
virtual void | readSubMeshOperation (DataStreamPtr &stream, Mesh *pMesh, SubMesh *sub)
virtual void | readSubMeshTextureAlias (DataStreamPtr &stream, Mesh *pMesh, SubMesh *sub)
virtual void | readTextureLayer (DataStreamPtr &stream, Mesh *pMesh, MaterialPtr &pMat)
virtual void | writeAnimation (const Animation *anim)
virtual void | writeAnimations (const Mesh *pMesh)
virtual void | writeAnimationTrack (const VertexAnimationTrack *track)
void | writeBools (const bool *const pLong, size_t count)
virtual void | writeBoundsInfo (const Mesh *pMesh)
virtual void | writeChunkHeader (uint16 id, size_t size)
void | writeData (const void *const buf, size_t size, size_t count)
virtual void | writeEdgeList (const Mesh *pMesh)
virtual void | writeExtremes (const Mesh *pMesh)
virtual void | writeFileHeader (void)
| Default to native endian, derive from header. More...
void | writeFloats (const float *const pfloat, size_t count)
void | writeFloats (const double *const pfloat, size_t count)
virtual void | writeGeometry (const VertexData *pGeom)
void | writeInts (const uint32 *const pInt, size_t count)
virtual void | writeLodInfo (const Mesh *pMesh)
virtual void | writeLodSummary (unsigned short numLevels, bool manual, const LodStrategy *strategy)
virtual void | writeLodUsageGenerated (const Mesh *pMesh, const MeshLodUsage &usage, unsigned short lodNum)
virtual void | writeLodUsageManual (const MeshLodUsage &usage)
virtual void | writeMesh (const Mesh *pMesh)
virtual void | writeMeshBoneAssignment (const VertexBoneAssignment &assign)
virtual void | writeMorphKeyframe (const VertexMorphKeyFrame *kf, size_t vertexCount)
void | writeObject (const Vector3 &vec)
void | writeObject (const Quaternion &q)
virtual void | writePose (const Pose *pose)
virtual void | writePoseKeyframe (const VertexPoseKeyFrame *kf)
virtual void | writePoseKeyframePoseRef (const VertexPoseKeyFrame::PoseRef &poseRef)
virtual void | writePoses (const Mesh *pMesh)
void | writeShorts (const uint16 *const pShort, size_t count)
virtual void | writeSkeletonLink (const String &skelName)
void | writeString (const String &string)
virtual void | writeSubMesh (const SubMesh *s)
virtual void | writeSubMeshBoneAssignment (const VertexBoneAssignment &assign)
virtual void | writeSubMeshExtremes (unsigned short idx, const SubMesh *s)
virtual void | writeSubMeshNameTable (const Mesh *pMesh)
virtual void | writeSubMeshOperation (const SubMesh *s)
virtual void | writeSubMeshTextureAliases (const SubMesh *s)

## Protected Attributes

uint32 | mCurrentstreamLen
bool | mFlipEndian
DataStreamPtr | mStream
String | mVersion

## Detailed Description

Internal implementation of Mesh reading / writing for the latest version of the .mesh format.

Remarks
  In order to maintain compatibility with older versions of the .mesh format, there will be alternative subclasses of this class to load older versions, whilst this class will remain to load the latest version.

Note
  This mesh format was used from Ogre v1.8.

Definition at line 61 of file OgreMeshSerializerImpl.h.

## Member Enumeration Documentation

## Endian

enum Ogre::Serializer::Endian

inherited

The endianness of written files.

Enumerator
ENDIAN_NATIVE | Use the platform native endian.
ENDIAN_BIG | Use big endian (0x1000 is serialised as 0x10 0x00)
ENDIAN_LITTLE | Use little endian (0x1000 is serialised as 0x00 0x10)

Definition at line 57 of file OgreSerializer.h.

## Constructor & Destructor Documentation

## MeshSerializerImpl()

Ogre::MeshSerializerImpl::MeshSerializerImpl | ( |  | ) |

## ~MeshSerializerImpl()

virtual Ogre::MeshSerializerImpl::~MeshSerializerImpl | ( |  | ) |

virtual

## Member Function Documentation

## calcAnimationSize()

virtual size_t Ogre::MeshSerializerImpl::calcAnimationSize | ( | const Animation * | anim | ) |

protected virtual

## calcAnimationsSize()

virtual size_t Ogre::MeshSerializerImpl::calcAnimationsSize | ( | const Mesh * | pMesh | ) |

protected virtual

## calcAnimationTrackSize()

virtual size_t Ogre::MeshSerializerImpl::calcAnimationTrackSize | ( | const VertexAnimationTrack * | track | ) |

protected virtual

## calcBoneAssignmentSize()

virtual size_t Ogre::MeshSerializerImpl::calcBoneAssignmentSize | ( | void |  | ) |

protected virtual

## calcEdgeGroupSize()

virtual size_t Ogre::MeshSerializerImpl::calcEdgeGroupSize | ( | const EdgeData::EdgeGroup & | group | ) |

protected virtual

## calcEdgeListLodSize()

virtual size_t Ogre::MeshSerializerImpl::calcEdgeListLodSize | ( | const EdgeData * | data,
|  | bool | isManual
| ) |  |

protected virtual

## calcEdgeListSize()

virtual size_t Ogre::MeshSerializerImpl::calcEdgeListSize | ( | const Mesh * | pMesh | ) |

protected virtual

## calcGeometrySize()

virtual size_t Ogre::MeshSerializerImpl::calcGeometrySize | ( | const VertexData * | pGeom | ) |

protected virtual

## calcMeshSize()

virtual size_t Ogre::MeshSerializerImpl::calcMeshSize | ( | const Mesh * | pMesh | ) |

protected virtual

## calcMorphKeyframeSize()

virtual size_t Ogre::MeshSerializerImpl::calcMorphKeyframeSize | ( | const VertexMorphKeyFrame * | kf,
|  | size_t | vertexCount
| ) |  |

protected virtual

Reimplemented in Ogre::MeshSerializerImpl_v1_41.

## calcPoseKeyframePoseRefSize()

virtual size_t Ogre::MeshSerializerImpl::calcPoseKeyframePoseRefSize | ( | void |  | ) |

protected virtual

## calcPoseKeyframeSize()

virtual size_t Ogre::MeshSerializerImpl::calcPoseKeyframeSize | ( | const VertexPoseKeyFrame * | kf | ) |

protected virtual

## calcPoseSize()

virtual size_t Ogre::MeshSerializerImpl::calcPoseSize | ( | const Pose * | pose | ) |

protected virtual

Reimplemented in Ogre::MeshSerializerImpl_v1_41.

## calcPosesSize()

virtual size_t Ogre::MeshSerializerImpl::calcPosesSize | ( | const Mesh * | pMesh | ) |

protected virtual

## calcPoseVertexSize()

virtual size_t Ogre::MeshSerializerImpl::calcPoseVertexSize | ( | const Pose * | pose | ) |

protected virtual

## calcSkeletonLinkSize()

virtual size_t Ogre::MeshSerializerImpl::calcSkeletonLinkSize | ( | const String & | skelName | ) |

protected virtual

## calcSubMeshNameTableSize()

virtual size_t Ogre::MeshSerializerImpl::calcSubMeshNameTableSize | ( | const Mesh * | pMesh | ) |

protected virtual

## calcSubMeshOperationSize()

virtual size_t Ogre::MeshSerializerImpl::calcSubMeshOperationSize | ( | const SubMesh * | pSub | ) |

protected virtual

## calcSubMeshSize()

virtual size_t Ogre::MeshSerializerImpl::calcSubMeshSize | ( | const SubMesh * | pSub | ) |

protected virtual

## calcSubMeshTextureAliasesSize()

virtual size_t Ogre::MeshSerializerImpl::calcSubMeshTextureAliasesSize | ( | const SubMesh * | pSub | ) |

protected virtual

## determineEndianness() [1/2]

virtual void Ogre::Serializer::determineEndianness | ( | DataStreamPtr & | stream | ) |

protected virtual inherited

Determine the endianness of the incoming stream compared to native.

## determineEndianness() [2/2]

virtual void Ogre::Serializer::determineEndianness | ( | Endian | requestedEndian | ) |

protected virtual inherited

Determine the endianness to write with based on option.

## exportMesh()

void Ogre::MeshSerializerImpl::exportMesh | ( | const Mesh * | pMesh,
|  | DataStreamPtr | stream,
|  | Endian | endianMode = `ENDIAN_NATIVE`
| ) |  |

Exports a mesh to the file specified.

Remarks
  This method takes an externally created Mesh object, and exports both it and optionally the Materials it uses to a .mesh file.

Parameters

  pMesh | Pointer to the Mesh to export
  stream | The destination stream
  endianMode | The endian mode for the written file

## flipEndian() [1/3]

virtual void Ogre::Serializer::flipEndian | ( | void * | pData,
|  | size_t | size,
|  | size_t | count
| ) |  |

protected virtual inherited

## flipEndian() [2/3]

virtual void Ogre::Serializer::flipEndian | ( | void * | pData,
|  | size_t | size
| ) |  |

protected virtual inherited

## flipEndian() [3/3]

virtual void Ogre::MeshSerializerImpl::flipEndian | ( | void * | pData,
|  | size_t | vertexCount,
|  | size_t | vertexSize,
|  | const VertexDeclaration::VertexElementList & | elems
| ) |  |

protected virtual

Flip the endianness of an entire vertex buffer, passed in as a pointer to locked or temporary memory.

## flipFromLittleEndian() [1/2]

virtual void Ogre::Serializer::flipFromLittleEndian | ( | void * | pData,
|  | size_t | size,
|  | size_t | count = `1`
| ) |  |

protected virtual inherited

## flipFromLittleEndian() [2/2]

virtual void Ogre::MeshSerializerImpl::flipFromLittleEndian | ( | void * | pData,
|  | size_t | vertexCount,
|  | size_t | vertexSize,
|  | const VertexDeclaration::VertexElementList & | elems
| ) |  |

protected virtual

Flip an entire vertex buffer from little endian.

## flipToLittleEndian() [1/2]

virtual void Ogre::Serializer::flipToLittleEndian | ( | void * | pData,
|  | size_t | size,
|  | size_t | count = `1`
| ) |  |

protected virtual inherited

## flipToLittleEndian() [2/2]

virtual void Ogre::MeshSerializerImpl::flipToLittleEndian | ( | void * | pData,
|  | size_t | vertexCount,
|  | size_t | vertexSize,
|  | const VertexDeclaration::VertexElementList & | elems
| ) |  |

protected virtual

Flip an entire vertex buffer to little endian.

## importMesh()

void Ogre::MeshSerializerImpl::importMesh | ( | DataStreamPtr & | stream,
|  | Mesh * | pDest,
|  | MeshSerializerListener * | listener
| ) |  |

Imports Mesh and (optionally) Material data from a .mesh file DataStream.

Remarks
  This method imports data from a DataStream opened from a .mesh file and places it's contents into the Mesh object which is passed in.

Parameters

  stream | The DataStream holding the .mesh data. Must be initialised (pos at the start of the buffer).
  pDest | Pointer to the Mesh object which will receive the data. Should be blank already.

## operator delete() [1/3]

template<class Alloc >

void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr | ) |

inherited

Definition at line 96 of file OgreMemoryAllocatedObject.h.

## operator delete() [2/3]

template<class Alloc >

void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr,
|  | void * |
| ) |  |

inherited

Definition at line 102 of file OgreMemoryAllocatedObject.h.

## operator delete() [3/3]

template<class Alloc >

void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr,
|  | const char * | ,
|  | int | ,
|  | const char * |
| ) |  |

inherited

Definition at line 108 of file OgreMemoryAllocatedObject.h.

## operator delete[]() [1/2]

template<class Alloc >

void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr | ) |

inherited

Definition at line 113 of file OgreMemoryAllocatedObject.h.

## operator delete[]() [2/2]

template<class Alloc >

void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr,
|  | const char * | ,
|  | int | ,
|  | const char * |
| ) |  |

inherited

Definition at line 119 of file OgreMemoryAllocatedObject.h.

## operator new() [1/3]

template<class Alloc >

void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz,
|  | const char * | file,
|  | int | line,
|  | const char * | func
| ) |  |

inherited

operator new, with debug line info

Definition at line 68 of file OgreMemoryAllocatedObject.h.

## operator new() [2/3]

template<class Alloc >

void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz | ) |

inherited

Definition at line 73 of file OgreMemoryAllocatedObject.h.

## operator new() [3/3]

template<class Alloc >

void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz,
|  | void * | ptr
| ) |  |

inherited

placement operator new

Definition at line 79 of file OgreMemoryAllocatedObject.h.

## operator new[]() [1/2]

template<class Alloc >

void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz,
|  | const char * | file,
|  | int | line,
|  | const char * | func
| ) |  |

inherited

array operator new, with debug line info

Definition at line 86 of file OgreMemoryAllocatedObject.h.

## operator new[]() [2/2]

template<class Alloc >

void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz | ) |

inherited

Definition at line 91 of file OgreMemoryAllocatedObject.h.

## readAnimation()

virtual void Ogre::MeshSerializerImpl::readAnimation | ( | DataStreamPtr & | stream,
|  | Mesh * | pMesh
| ) |  |

protected virtual

## readAnimations()

virtual void Ogre::MeshSerializerImpl::readAnimations | ( | DataStreamPtr & | stream,
|  | Mesh * | pMesh
| ) |  |

protected virtual

## readAnimationTrack()

virtual void Ogre::MeshSerializerImpl::readAnimationTrack | ( | DataStreamPtr & | stream,
|  | Animation * | anim,
|  | Mesh * | pMesh
| ) |  |

protected virtual

## readBools()

void Ogre::Serializer::readBools | ( | DataStreamPtr & | stream,
|  | bool * | pDest,
|  | size_t | count
| ) |  |

protected inherited

## readBoundsInfo()

virtual void Ogre::MeshSerializerImpl::readBoundsInfo | ( | DataStreamPtr & | stream,
|  | Mesh * | pMesh
| ) |  |

protected virtual

## readChunk()

virtual unsigned short Ogre::Serializer::readChunk | ( | DataStreamPtr & | stream | ) |

protected virtual inherited

## readEdgeList()

virtual void Ogre::MeshSerializerImpl::readEdgeList | ( | DataStreamPtr & | stream,
|  | Mesh * | pMesh
| ) |  |

protected virtual

## readEdgeListLodInfo()

virtual void Ogre::MeshSerializerImpl::readEdgeListLodInfo | ( | DataStreamPtr & | stream,
|  | EdgeData * | edgeData
| ) |  |

protected virtual

Reimplemented in Ogre::MeshSerializerImpl_v1_3.

## readExtremes()

virtual void Ogre::MeshSerializerImpl::readExtremes | ( | DataStreamPtr & | stream,
|  | Mesh * | pMesh
| ) |  |

protected virtual

## readFileHeader()

virtual void Ogre::Serializer::readFileHeader | ( | DataStreamPtr & | stream | ) |

protected virtual inherited

Reimplemented in Ogre::SkeletonSerializer.

## readFloats() [1/2]

void Ogre::Serializer::readFloats | ( | DataStreamPtr & | stream,
|  | float * | pDest,
|  | size_t | count
| ) |  |

protected inherited

## readFloats() [2/2]

void Ogre::Serializer::readFloats | ( | DataStreamPtr & | stream,
|  | double * | pDest,
|  | size_t | count
| ) |  |

protected inherited

## readGeometry()

virtual void Ogre::MeshSerializerImpl::readGeometry | ( | DataStreamPtr & | stream,
|  | Mesh * | pMesh,
|  | VertexData * | dest
| ) |  |

protected virtual

Reimplemented in Ogre::MeshSerializerImpl_v1_2.

## readGeometryVertexBuffer()

virtual void Ogre::MeshSerializerImpl::readGeometryVertexBuffer | ( | DataStreamPtr & | stream,
|  | Mesh * | pMesh,
|  | VertexData * | dest
| ) |  |

protected virtual

## readGeometryVertexDeclaration()

virtual void Ogre::MeshSerializerImpl::readGeometryVertexDeclaration | ( | DataStreamPtr & | stream,
|  | Mesh * | pMesh,
|  | VertexData * | dest
| ) |  |

protected virtual

## readGeometryVertexElement()

virtual void Ogre::MeshSerializerImpl::readGeometryVertexElement | ( | DataStreamPtr & | stream,
|  | Mesh * | pMesh,
|  | VertexData * | dest
| ) |  |

protected virtual

## readInts()

void Ogre::Serializer::readInts | ( | DataStreamPtr & | stream,
|  | uint32 * | pDest,
|  | size_t | count
| ) |  |

protected inherited

## readMesh()

virtual void Ogre::MeshSerializerImpl::readMesh | ( | DataStreamPtr & | stream,
|  | Mesh * | pMesh,
|  | MeshSerializerListener * | listener
| ) |  |

protected virtual

Reimplemented in Ogre::MeshSerializerImpl_v1_2.

## readMeshBoneAssignment()

virtual void Ogre::MeshSerializerImpl::readMeshBoneAssignment | ( | DataStreamPtr & | stream,
|  | Mesh * | pMesh
| ) |  |

protected virtual

## readMeshLodInfo()

virtual void Ogre::MeshSerializerImpl::readMeshLodInfo | ( | DataStreamPtr & | stream,
|  | Mesh * | pMesh
| ) |  |

protected virtual

Reimplemented in Ogre::MeshSerializerImpl_v1_4.

## readMeshLodUsageGenerated()

virtual void Ogre::MeshSerializerImpl::readMeshLodUsageGenerated | ( | DataStreamPtr & | stream,
|  | Mesh * | pMesh,
|  | unsigned short | lodNum,
|  | MeshLodUsage & | usage
| ) |  |

protected virtual

## readMeshLodUsageManual()

virtual void Ogre::MeshSerializerImpl::readMeshLodUsageManual | ( | DataStreamPtr & | stream,
|  | Mesh * | pMesh,
|  | unsigned short | lodNum,
|  | MeshLodUsage & | usage
| ) |  |

protected virtual

## readMorphKeyFrame()

virtual void Ogre::MeshSerializerImpl::readMorphKeyFrame | ( | DataStreamPtr & | stream,
|  | VertexAnimationTrack * | track
| ) |  |

protected virtual

Reimplemented in Ogre::MeshSerializerImpl_v1_41.

## readObject() [1/2]

void Ogre::Serializer::readObject | ( | DataStreamPtr & | stream,
|  | Vector3 & | pDest
| ) |  |

protected inherited

## readObject() [2/2]

void Ogre::Serializer::readObject | ( | DataStreamPtr & | stream,
|  | Quaternion & | pDest
| ) |  |

protected inherited

## readPose()

virtual void Ogre::MeshSerializerImpl::readPose | ( | DataStreamPtr & | stream,
|  | Mesh * | pMesh
| ) |  |

protected virtual

Reimplemented in Ogre::MeshSerializerImpl_v1_41.

## readPoseKeyFrame()

virtual void Ogre::MeshSerializerImpl::readPoseKeyFrame | ( | DataStreamPtr & | stream,
|  | VertexAnimationTrack * | track
| ) |  |

protected virtual

## readPoses()

virtual void Ogre::MeshSerializerImpl::readPoses | ( | DataStreamPtr & | stream,
|  | Mesh * | pMesh
| ) |  |

protected virtual

## readShorts()

void Ogre::Serializer::readShorts | ( | DataStreamPtr & | stream,
|  | uint16 * | pDest,
|  | size_t | count
| ) |  |

protected inherited

## readSkeletonLink()

virtual void Ogre::MeshSerializerImpl::readSkeletonLink | ( | DataStreamPtr & | stream,
|  | Mesh * | pMesh,
|  | MeshSerializerListener * | listener
| ) |  |

protected virtual

## readString() [1/2]

String Ogre::Serializer::readString | ( | DataStreamPtr & | stream | ) |

protected inherited

## readString() [2/2]

String Ogre::Serializer::readString | ( | DataStreamPtr & | stream,
|  | size_t | numChars
| ) |  |

protected inherited

## readSubMesh()

virtual void Ogre::MeshSerializerImpl::readSubMesh | ( | DataStreamPtr & | stream,
|  | Mesh * | pMesh,
|  | MeshSerializerListener * | listener
| ) |  |

protected virtual

## readSubMeshBoneAssignment()

virtual void Ogre::MeshSerializerImpl::readSubMeshBoneAssignment | ( | DataStreamPtr & | stream,
|  | Mesh * | pMesh,
|  | SubMesh * | sub
| ) |  |

protected virtual

## readSubMeshNameTable()

virtual void Ogre::MeshSerializerImpl::readSubMeshNameTable | ( | DataStreamPtr & | stream,
|  | Mesh * | pMesh
| ) |  |

protected virtual

## readSubMeshOperation()

virtual void Ogre::MeshSerializerImpl::readSubMeshOperation | ( | DataStreamPtr & | stream,
|  | Mesh * | pMesh,
|  | SubMesh * | sub
| ) |  |

protected virtual

## readSubMeshTextureAlias()

virtual void Ogre::MeshSerializerImpl::readSubMeshTextureAlias | ( | DataStreamPtr & | stream,
|  | Mesh * | pMesh,
|  | SubMesh * | sub
| ) |  |

protected virtual

## readTextureLayer()

virtual void Ogre::MeshSerializerImpl::readTextureLayer | ( | DataStreamPtr & | stream,
|  | Mesh * | pMesh,
|  | MaterialPtr & | pMat
| ) |  |

protected virtual

## writeAnimation()

virtual void Ogre::MeshSerializerImpl::writeAnimation | ( | const Animation * | anim | ) |

protected virtual

## writeAnimations()

virtual void Ogre::MeshSerializerImpl::writeAnimations | ( | const Mesh * | pMesh | ) |

protected virtual

## writeAnimationTrack()

virtual void Ogre::MeshSerializerImpl::writeAnimationTrack | ( | const VertexAnimationTrack * | track | ) |

protected virtual

## writeBools()

void Ogre::Serializer::writeBools | ( | const bool *const | pLong,
|  | size_t | count
| ) |  |

protected inherited

## writeBoundsInfo()

virtual void Ogre::MeshSerializerImpl::writeBoundsInfo | ( | const Mesh * | pMesh | ) |

protected virtual

## writeChunkHeader()

virtual void Ogre::Serializer::writeChunkHeader | ( | uint16 | id,
|  | size_t | size
| ) |  |

protected virtual inherited

## writeData()

void Ogre::Serializer::writeData | ( | const void *const | buf,
|  | size_t | size,
|  | size_t | count
| ) |  |

protected inherited

## writeEdgeList()

virtual void Ogre::MeshSerializerImpl::writeEdgeList | ( | const Mesh * | pMesh | ) |

protected virtual

Reimplemented in Ogre::MeshSerializerImpl_v1_3.

## writeExtremes()

virtual void Ogre::MeshSerializerImpl::writeExtremes | ( | const Mesh * | pMesh | ) |

protected virtual

## writeFileHeader()

virtual void Ogre::Serializer::writeFileHeader | ( | void |  | ) |

protected virtual inherited

Default to native endian, derive from header.

## writeFloats() [1/2]

void Ogre::Serializer::writeFloats | ( | const float *const | pfloat,
|  | size_t | count
| ) |  |

protected inherited

## writeFloats() [2/2]

void Ogre::Serializer::writeFloats | ( | const double *const | pfloat,
|  | size_t | count
| ) |  |

protected inherited

## writeGeometry()

virtual void Ogre::MeshSerializerImpl::writeGeometry | ( | const VertexData * | pGeom | ) |

protected virtual

## writeInts()

void Ogre::Serializer::writeInts | ( | const uint32 *const | pInt,
|  | size_t | count
| ) |  |

protected inherited

## writeLodInfo()

virtual void Ogre::MeshSerializerImpl::writeLodInfo | ( | const Mesh * | pMesh | ) |

protected virtual

## writeLodSummary()

virtual void Ogre::MeshSerializerImpl::writeLodSummary | ( | unsigned short | numLevels,
|  | bool | manual,
|  | const LodStrategy * | strategy
| ) |  |

protected virtual

Reimplemented in Ogre::MeshSerializerImpl_v1_4.

## writeLodUsageGenerated()

virtual void Ogre::MeshSerializerImpl::writeLodUsageGenerated | ( | const Mesh * | pMesh,
|  | const MeshLodUsage & | usage,
|  | unsigned short | lodNum
| ) |  |

protected virtual

Reimplemented in Ogre::MeshSerializerImpl_v1_4.

## writeLodUsageManual()

virtual void Ogre::MeshSerializerImpl::writeLodUsageManual | ( | const MeshLodUsage & | usage | ) |

protected virtual

Reimplemented in Ogre::MeshSerializerImpl_v1_4.

## writeMesh()

virtual void Ogre::MeshSerializerImpl::writeMesh | ( | const Mesh * | pMesh | ) |

protected virtual

## writeMeshBoneAssignment()

virtual void Ogre::MeshSerializerImpl::writeMeshBoneAssignment | ( | const VertexBoneAssignment & | assign | ) |

protected virtual

## writeMorphKeyframe()

virtual void Ogre::MeshSerializerImpl::writeMorphKeyframe | ( | const VertexMorphKeyFrame * | kf,
|  | size_t | vertexCount
| ) |  |

protected virtual

Reimplemented in Ogre::MeshSerializerImpl_v1_41.

## writeObject() [1/2]

void Ogre::Serializer::writeObject | ( | const Vector3 & | vec | ) |

protected inherited

## writeObject() [2/2]

void Ogre::Serializer::writeObject | ( | const Quaternion & | q | ) |

protected inherited

## writePose()

virtual void Ogre::MeshSerializerImpl::writePose | ( | const Pose * | pose | ) |

protected virtual

Reimplemented in Ogre::MeshSerializerImpl_v1_41.

## writePoseKeyframe()

virtual void Ogre::MeshSerializerImpl::writePoseKeyframe | ( | const VertexPoseKeyFrame * | kf | ) |

protected virtual

## writePoseKeyframePoseRef()

virtual void Ogre::MeshSerializerImpl::writePoseKeyframePoseRef | ( | const VertexPoseKeyFrame::PoseRef & | poseRef | ) |

protected virtual

## writePoses()

virtual void Ogre::MeshSerializerImpl::writePoses | ( | const Mesh * | pMesh | ) |

protected virtual

## writeShorts()

void Ogre::Serializer::writeShorts | ( | const uint16 *const | pShort,
|  | size_t | count
| ) |  |

protected inherited

## writeSkeletonLink()

virtual void Ogre::MeshSerializerImpl::writeSkeletonLink | ( | const String & | skelName | ) |

protected virtual

## writeString()

void Ogre::Serializer::writeString | ( | const String & | string | ) |

protected inherited

## writeSubMesh()

virtual void Ogre::MeshSerializerImpl::writeSubMesh | ( | const SubMesh * | s | ) |

protected virtual

## writeSubMeshBoneAssignment()

virtual void Ogre::MeshSerializerImpl::writeSubMeshBoneAssignment | ( | const VertexBoneAssignment & | assign | ) |

protected virtual

## writeSubMeshExtremes()

virtual void Ogre::MeshSerializerImpl::writeSubMeshExtremes | ( | unsigned short | idx,
|  | const SubMesh * | s
| ) |  |

protected virtual

## writeSubMeshNameTable()

virtual void Ogre::MeshSerializerImpl::writeSubMeshNameTable | ( | const Mesh * | pMesh | ) |

protected virtual

## writeSubMeshOperation()

virtual void Ogre::MeshSerializerImpl::writeSubMeshOperation | ( | const SubMesh * | s | ) |

protected virtual

## writeSubMeshTextureAliases()

virtual void Ogre::MeshSerializerImpl::writeSubMeshTextureAliases | ( | const SubMesh * | s | ) |

protected virtual

## Member Data Documentation

## mCurrentstreamLen

uint32 Ogre::Serializer::mCurrentstreamLen

protected inherited

Definition at line 70 of file OgreSerializer.h.

## mFlipEndian

bool Ogre::Serializer::mFlipEndian

protected inherited

Definition at line 73 of file OgreSerializer.h.

## mStream

DataStreamPtr Ogre::Serializer::mStream

protected inherited

Definition at line 71 of file OgreSerializer.h.

## mVersion

String Ogre::Serializer::mVersion

protected inherited

Definition at line 72 of file OgreSerializer.h.

The documentation for this class was generated from the following file:

- OgreMeshSerializerImpl.h

Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.