|
OGRE
1.9.0
|
Class for serialising mesh data to/from an OGRE .mesh file. More...
#include <OgreMeshSerializer.h>

Classes | |
| class | MeshVersionData |
Public Types | |
| enum | Endian { ENDIAN_NATIVE , ENDIAN_BIG , ENDIAN_LITTLE } |
| The endianness of written files. More... | |
Public Member Functions | |
| MeshSerializer () | |
| virtual | ~MeshSerializer () |
| void | exportMesh (const Mesh *pMesh, const String &filename, Endian endianMode=ENDIAN_NATIVE) |
| Exports a mesh to the file specified, in the latest format. | |
| void | exportMesh (const Mesh *pMesh, const String &filename, MeshVersion version, Endian endianMode=ENDIAN_NATIVE) |
| Exports a mesh to the file specified, in a specific version format. | |
| void | exportMesh (const Mesh *pMesh, DataStreamPtr stream, Endian endianMode=ENDIAN_NATIVE) |
| Exports a mesh to the stream specified, in the latest format. | |
| void | exportMesh (const Mesh *pMesh, DataStreamPtr stream, MeshVersion version, Endian endianMode=ENDIAN_NATIVE) |
| Exports a mesh to the stream specified, in a specific version format. | |
| MeshSerializerListener * | getListener () |
| Returns the current listener. | |
| void | importMesh (DataStreamPtr &stream, Mesh *pDest) |
| Imports Mesh and (optionally) Material data from a .mesh file DataStream. | |
| void | operator delete (void *ptr) |
| void | operator delete (void *ptr) |
| void | operator delete (void *ptr, const char *, int, const char *) |
| void | operator delete (void *ptr, const char *, int, const char *) |
| void | operator delete (void *ptr, void *) |
| void | operator delete (void *ptr, void *) |
| void | operator delete[] (void *ptr) |
| void | operator delete[] (void *ptr) |
| void | operator delete[] (void *ptr, const char *, int, const char *) |
| void | operator delete[] (void *ptr, const char *, int, const char *) |
| void * | operator new (size_t sz) |
| void * | operator new (size_t sz) |
| void * | operator new (size_t sz, const char *file, int line, const char *func) |
| operator new, with debug line info | |
| void * | operator new (size_t sz, const char *file, int line, const char *func) |
| operator new, with debug line info | |
| void * | operator new (size_t sz, void *ptr) |
| placement operator new | |
| void * | operator new (size_t sz, void *ptr) |
| placement operator new | |
| void * | operator new[] (size_t sz) |
| void * | operator new[] (size_t sz) |
| void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
| array operator new, with debug line info | |
| void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
| array operator new, with debug line info | |
| void | setListener (MeshSerializerListener *listener) |
| Sets the listener for this serializer. | |
Protected Types | |
| typedef vector< MeshVersionData * >::type | MeshVersionDataList |
Protected Member Functions | |
| virtual void | determineEndianness (DataStreamPtr &stream) |
| Determine the endianness of the incoming stream compared to native. | |
| virtual void | determineEndianness (Endian requestedEndian) |
| Determine the endianness to write with based on option. | |
| virtual void | flipFromLittleEndian (void *pData, size_t size, size_t count=1) |
| virtual void | flipToLittleEndian (void *pData, size_t size, size_t count=1) |
| void | readBools (DataStreamPtr &stream, bool *pDest, size_t count) |
| virtual unsigned short | readChunk (DataStreamPtr &stream) |
| virtual void | readFileHeader (DataStreamPtr &stream) |
| void | readFloats (DataStreamPtr &stream, double *pDest, size_t count) |
| void | readFloats (DataStreamPtr &stream, float *pDest, size_t count) |
| void | readInts (DataStreamPtr &stream, uint32 *pDest, size_t count) |
| void | readObject (DataStreamPtr &stream, Quaternion &pDest) |
| void | readObject (DataStreamPtr &stream, Vector3 &pDest) |
| void | readShorts (DataStreamPtr &stream, uint16 *pDest, size_t count) |
| String | readString (DataStreamPtr &stream) |
| String | readString (DataStreamPtr &stream, size_t numChars) |
| void | writeBools (const bool *const pLong, size_t count) |
| virtual void | writeChunkHeader (uint16 id, size_t size) |
| void | writeData (const void *const buf, size_t size, size_t count) |
| virtual void | writeFileHeader (void) |
| Default to native endian, derive from header. | |
| void | writeFloats (const double *const pfloat, size_t count) |
| void | writeFloats (const float *const pfloat, size_t count) |
| void | writeInts (const uint32 *const pInt, size_t count) |
| void | writeObject (const Quaternion &q) |
| void | writeObject (const Vector3 &vec) |
| void | writeShorts (const uint16 *const pShort, size_t count) |
| void | writeString (const String &string) |
Protected Attributes | |
| uint32 | mCurrentstreamLen |
| bool | mFlipEndian |
| MeshSerializerListener * | mListener |
| DataStreamPtr | mStream |
| String | mVersion |
| MeshVersionDataList | mVersionData |
Class for serialising mesh data to/from an OGRE .mesh file.
Definition at line 89 of file OgreMeshSerializer.h.
|
protected |
Definition at line 178 of file OgreMeshSerializer.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::MeshSerializer::MeshSerializer | ( | ) |
|
virtual |
|
protectedvirtualinherited |
Determine the endianness of the incoming stream compared to native.
|
protectedvirtualinherited |
Determine the endianness to write with based on option.
| void Ogre::MeshSerializer::exportMesh | ( | const Mesh * | pMesh, |
| const String & | filename, | ||
| Endian | endianMode = ENDIAN_NATIVE ) |
Exports a mesh to the file specified, in the latest format.
| pMesh | Pointer to the Mesh to export |
| filename | The destination filename |
| endianMode | The endian mode of the written file |
References Ogre::Serializer::ENDIAN_NATIVE.
| void Ogre::MeshSerializer::exportMesh | ( | const Mesh * | pMesh, |
| const String & | filename, | ||
| MeshVersion | version, | ||
| Endian | endianMode = ENDIAN_NATIVE ) |
Exports a mesh to the file specified, in a specific version format.
| pMesh | Pointer to the Mesh to export |
| filename | The destination filename |
| version | Mesh version to write |
| endianMode | The endian mode of the written file |
References Ogre::Serializer::ENDIAN_NATIVE.
| void Ogre::MeshSerializer::exportMesh | ( | const Mesh * | pMesh, |
| DataStreamPtr | stream, | ||
| Endian | endianMode = ENDIAN_NATIVE ) |
Exports a mesh to the stream specified, in the latest format.
| pMesh | Pointer to the Mesh to export |
| stream | Writeable stream |
| endianMode | The endian mode of the written file |
References Ogre::Serializer::ENDIAN_NATIVE.
| void Ogre::MeshSerializer::exportMesh | ( | const Mesh * | pMesh, |
| DataStreamPtr | stream, | ||
| MeshVersion | version, | ||
| Endian | endianMode = ENDIAN_NATIVE ) |
Exports a mesh to the stream specified, in a specific version format.
| pMesh | Pointer to the Mesh to export |
| stream | Writeable stream |
| version | Mesh version to write |
| endianMode | The endian mode of the written file |
References Ogre::Serializer::ENDIAN_NATIVE.
|
protectedvirtualinherited |
|
protectedvirtualinherited |
| MeshSerializerListener * Ogre::MeshSerializer::getListener | ( | ) |
Returns the current listener.
| void Ogre::MeshSerializer::importMesh | ( | DataStreamPtr & | stream, |
| Mesh * | pDest ) |
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. |
|
inherited |
Definition at line 96 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 96 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 108 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 108 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 102 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 102 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 113 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 113 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 119 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 119 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 73 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 73 of file OgreMemoryAllocatedObject.h.
|
inherited |
operator new, with debug line info
Definition at line 68 of file OgreMemoryAllocatedObject.h.
|
inherited |
operator new, with debug line info
Definition at line 68 of file OgreMemoryAllocatedObject.h.
|
inherited |
placement operator new
Definition at line 79 of file OgreMemoryAllocatedObject.h.
|
inherited |
placement operator new
Definition at line 79 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 91 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 91 of file OgreMemoryAllocatedObject.h.
|
inherited |
array operator new, with debug line info
Definition at line 86 of file OgreMemoryAllocatedObject.h.
|
inherited |
array operator new, with debug line info
Definition at line 86 of file OgreMemoryAllocatedObject.h.
|
protectedinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
Reimplemented in Ogre::SkeletonSerializer.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
| void Ogre::MeshSerializer::setListener | ( | MeshSerializerListener * | listener | ) |
Sets the listener for this serializer.
|
protectedinherited |
|
protectedvirtualinherited |
|
protectedinherited |
|
protectedvirtualinherited |
Default to native endian, derive from header.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
Definition at line 70 of file OgreSerializer.h.
|
protectedinherited |
Definition at line 73 of file OgreSerializer.h.
|
protected |
Definition at line 181 of file OgreMeshSerializer.h.
|
protectedinherited |
Definition at line 71 of file OgreSerializer.h.
|
protectedinherited |
Definition at line 72 of file OgreSerializer.h.
|
protected |
Definition at line 179 of file OgreMeshSerializer.h.
1.13.2