Ogre::MeshSerializerImpl_v1_4 Class Reference
Core » Resources

Class for providing backwards-compatibility for loading version 1.4 of the .mesh format. More...

`#include <OgreMeshSerializerImpl.h>`

Inheritance diagram for Ogre::MeshSerializerImpl_v1_4:
[legend]

## Public Types

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

## Public Member Functions

| MeshSerializerImpl_v1_4 ()
| ~MeshSerializerImpl_v1_4 ()
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)
size_t | calcMorphKeyframeSize (const VertexMorphKeyFrame *kf, size_t vertexCount)
virtual size_t | calcPoseKeyframePoseRefSize (void)
virtual size_t | calcPoseKeyframeSize (const VertexPoseKeyFrame *kf)
size_t | calcPoseSize (const Pose *pose)
virtual size_t | calcPosesSize (const Mesh *pMesh)
virtual size_t | calcPoseVertexSize (const Pose *pose)
size_t | calcPoseVertexSize (void)
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)
void | readMorphKeyFrame (DataStreamPtr &stream, VertexAnimationTrack *track)
void | readObject (DataStreamPtr &stream, Vector3 &pDest)
void | readObject (DataStreamPtr &stream, Quaternion &pDest)
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)
void | writeMorphKeyframe (const VertexMorphKeyFrame *kf, size_t vertexCount)
void | writeObject (const Vector3 &vec)
void | writeObject (const Quaternion &q)
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

Class for providing backwards-compatibility for loading version 1.4 of the .mesh format.

This mesh format was used from Ogre v1.4.

Definition at line 204 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_v1_4()

Ogre::MeshSerializerImpl_v1_4::MeshSerializerImpl_v1_4 | ( |  | ) |

## ~MeshSerializerImpl_v1_4()

Ogre::MeshSerializerImpl_v1_4::~MeshSerializerImpl_v1_4 | ( |  | ) |

## Member Function Documentation

## calcAnimationSize()

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

protected virtual inherited

## calcAnimationsSize()

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

protected virtual inherited

## calcAnimationTrackSize()

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

protected virtual inherited

## calcBoneAssignmentSize()

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

protected virtual inherited

## calcEdgeGroupSize()

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

protected virtual inherited

## calcEdgeListLodSize()

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

protected virtual inherited

## calcEdgeListSize()

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

protected virtual inherited

## calcGeometrySize()

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

protected virtual inherited

## calcMeshSize()

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

protected virtual inherited

## calcMorphKeyframeSize()

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

protected virtual inherited

Reimplemented from Ogre::MeshSerializerImpl.

## calcPoseKeyframePoseRefSize()

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

protected virtual inherited

## calcPoseKeyframeSize()

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

protected virtual inherited

## calcPoseSize()

size_t Ogre::MeshSerializerImpl_v1_41::calcPoseSize | ( | const Pose * | pose | ) |

protected virtual inherited

Reimplemented from Ogre::MeshSerializerImpl.

## calcPosesSize()

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

protected virtual inherited

## calcPoseVertexSize() [1/2]

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

protected virtual inherited

## calcPoseVertexSize() [2/2]

size_t Ogre::MeshSerializerImpl_v1_41::calcPoseVertexSize | ( | void |  | ) |

protected inherited

## calcSkeletonLinkSize()

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

protected virtual inherited

## calcSubMeshNameTableSize()

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

protected virtual inherited

## calcSubMeshOperationSize()

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

protected virtual inherited

## calcSubMeshSize()

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

protected virtual inherited

## calcSubMeshTextureAliasesSize()

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

protected virtual inherited

## 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`
| ) |  |

inherited

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 inherited

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 inherited

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 inherited

Flip an entire vertex buffer to little endian.

## importMesh()

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

inherited

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 inherited

## readAnimations()

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

protected virtual inherited

## readAnimationTrack()

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

protected virtual inherited

## 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 inherited

## readChunk()

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

protected virtual inherited

## readEdgeList()

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

protected virtual inherited

## readEdgeListLodInfo()

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

protected virtual inherited

Reimplemented in Ogre::MeshSerializerImpl_v1_3.

## readExtremes()

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

protected virtual inherited

## 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 inherited

Reimplemented in Ogre::MeshSerializerImpl_v1_2.

## readGeometryVertexBuffer()

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

protected virtual inherited

## readGeometryVertexDeclaration()

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

protected virtual inherited

## readGeometryVertexElement()

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

protected virtual inherited

## 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 inherited

Reimplemented in Ogre::MeshSerializerImpl_v1_2.

## readMeshBoneAssignment()

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

protected virtual inherited

## readMeshLodInfo()

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

protected virtual

Reimplemented from Ogre::MeshSerializerImpl.

## readMeshLodUsageGenerated()

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

protected virtual inherited

## readMeshLodUsageManual()

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

protected virtual inherited

## readMorphKeyFrame()

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

protected virtual inherited

Reimplemented from Ogre::MeshSerializerImpl.

## 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()

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

protected virtual inherited

Reimplemented from Ogre::MeshSerializerImpl.

## readPoseKeyFrame()

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

protected virtual inherited

## readPoses()

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

protected virtual inherited

## 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 inherited

## 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 inherited

## readSubMeshBoneAssignment()

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

protected virtual inherited

## readSubMeshNameTable()

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

protected virtual inherited

## readSubMeshOperation()

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

protected virtual inherited

## readSubMeshTextureAlias()

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

protected virtual inherited

## readTextureLayer()

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

protected virtual inherited

## writeAnimation()

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

protected virtual inherited

## writeAnimations()

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

protected virtual inherited

## writeAnimationTrack()

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

protected virtual inherited

## 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 inherited

## 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 inherited

Reimplemented in Ogre::MeshSerializerImpl_v1_3.

## writeExtremes()

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

protected virtual inherited

## 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 inherited

## 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 inherited

## writeLodSummary()

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

protected virtual

Reimplemented from Ogre::MeshSerializerImpl.

## writeLodUsageGenerated()

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

protected virtual

Reimplemented from Ogre::MeshSerializerImpl.

## writeLodUsageManual()

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

protected virtual

Reimplemented from Ogre::MeshSerializerImpl.

## writeMesh()

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

protected virtual inherited

## writeMeshBoneAssignment()

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

protected virtual inherited

## writeMorphKeyframe()

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

protected virtual inherited

Reimplemented from Ogre::MeshSerializerImpl.

## 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()

void Ogre::MeshSerializerImpl_v1_41::writePose | ( | const Pose * | pose | ) |

protected virtual inherited

Reimplemented from Ogre::MeshSerializerImpl.

## writePoseKeyframe()

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

protected virtual inherited

## writePoseKeyframePoseRef()

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

protected virtual inherited

## writePoses()

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

protected virtual inherited

## 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 inherited

## writeString()

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

protected inherited

## writeSubMesh()

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

protected virtual inherited

## writeSubMeshBoneAssignment()

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

protected virtual inherited

## writeSubMeshExtremes()

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

protected virtual inherited

## writeSubMeshNameTable()

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

protected virtual inherited

## writeSubMeshOperation()

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

protected virtual inherited

## writeSubMeshTextureAliases()

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

protected virtual inherited

## 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.