Class for providing backwards-compatibility for loading version 1.3 of the .mesh format. More...
#include <OgreMeshSerializerImpl.h>
Public Types | |
enum | Endian { ENDIAN_NATIVE, ENDIAN_BIG, ENDIAN_LITTLE } |
The endianness of written files. More... | |
Public Member Functions | |
MeshSerializerImpl_v1_3 () | |
~MeshSerializerImpl_v1_3 () | |
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 | reorganiseTriangles (EdgeData *edgeData) |
Reorganise triangles of the edge list to group by vertex set. More... | |
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 |
Class for providing backwards-compatibility for loading version 1.3 of the .mesh format.
This mesh format was used from Ogre v1.0 (and some pre-releases)
Definition at line 221 of file OgreMeshSerializerImpl.h.
|
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.
Ogre::MeshSerializerImpl_v1_3::MeshSerializerImpl_v1_3 | ( | ) |
Ogre::MeshSerializerImpl_v1_3::~MeshSerializerImpl_v1_3 | ( | ) |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
Reimplemented from Ogre::MeshSerializerImpl.
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
Reimplemented from Ogre::MeshSerializerImpl.
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
Determine the endianness of the incoming stream compared to native.
|
protectedvirtualinherited |
Determine the endianness to write with based on option.
|
inherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
Flip the endianness of an entire vertex buffer, passed in as a pointer to locked or temporary memory.
|
protectedvirtualinherited |
|
protectedvirtualinherited |
Flip an entire vertex buffer from little endian.
|
protectedvirtualinherited |
|
protectedvirtualinherited |
Flip an entire vertex buffer to little endian.
|
inherited |
Imports Mesh and (optionally) Material data from a .mesh file DataStream.
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. |
|
inlineinherited |
Definition at line 96 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 102 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 108 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 113 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 119 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
operator new, with debug line info
Definition at line 68 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 73 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
placement operator new
Definition at line 79 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
array operator new, with debug line info
Definition at line 86 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 91 of file OgreMemoryAllocatedObject.h.
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedvirtual |
Reimplemented from Ogre::MeshSerializerImpl.
|
protectedvirtualinherited |
|
protectedvirtualinherited |
Reimplemented in Ogre::SkeletonSerializer.
|
protectedinherited |
|
protectedinherited |
|
protectedvirtualinherited |
Reimplemented in Ogre::MeshSerializerImpl_v1_2.
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedinherited |
|
protectedvirtualinherited |
Reimplemented in Ogre::MeshSerializerImpl_v1_2.
|
protectedvirtualinherited |
|
protectedvirtualinherited |
Reimplemented from Ogre::MeshSerializerImpl.
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
Reimplemented from Ogre::MeshSerializerImpl.
|
protectedinherited |
|
protectedinherited |
|
protectedvirtualinherited |
Reimplemented from Ogre::MeshSerializerImpl.
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedinherited |
|
protectedvirtualinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedvirtual |
Reorganise triangles of the edge list to group by vertex set.
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedinherited |
|
protectedvirtual |
Reimplemented from Ogre::MeshSerializerImpl.
|
protectedvirtualinherited |
|
protectedvirtualinherited |
Default to native endian, derive from header.
|
protectedinherited |
|
protectedinherited |
|
protectedvirtualinherited |
|
protectedinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
Reimplemented from Ogre::MeshSerializerImpl.
|
protectedvirtualinherited |
Reimplemented from Ogre::MeshSerializerImpl.
|
protectedvirtualinherited |
Reimplemented from Ogre::MeshSerializerImpl.
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
Reimplemented from Ogre::MeshSerializerImpl.
|
protectedinherited |
|
protectedinherited |
|
protectedvirtualinherited |
Reimplemented from Ogre::MeshSerializerImpl.
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedinherited |
|
protectedvirtualinherited |
|
protectedinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedinherited |
Definition at line 70 of file OgreSerializer.h.
|
protectedinherited |
Definition at line 73 of file OgreSerializer.h.
|
protectedinherited |
Definition at line 71 of file OgreSerializer.h.
|
protectedinherited |
Definition at line 72 of file OgreSerializer.h.