![]() |
OGRE-Next
2.3
Object-Oriented Graphics Rendering Engine
|
Class for serialising mesh data to/from an OGRE .mesh file. More...
#include <OgreMesh2Serializer.h>
Public Types | |
enum | Endian { ENDIAN_NATIVE , ENDIAN_BIG , ENDIAN_LITTLE } |
The endianness of written files. More... | |
Public Member Functions | |
MeshSerializer (VaoManager *vaoManager) | |
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. More... | |
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. More... | |
void | exportMesh (const Mesh *pMesh, DataStreamPtr stream, Endian endianMode=ENDIAN_NATIVE) |
Exports a mesh to the stream specified, in the latest format. More... | |
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. More... | |
MeshSerializerListener * | getListener () |
Returns the current listener. More... | |
void | importMesh (DataStreamPtr &stream, Mesh *pDest) |
Imports Mesh and (optionally) Material data from a .mesh file DataStream. More... | |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete (void *ptr, void *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
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 More... | |
void * | operator new (size_t sz, void *ptr) |
placement operator new More... | |
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 More... | |
void | setListener (MeshSerializerListener *listener) |
Sets the listener for this serializer. More... | |
Class for serialising mesh data to/from an OGRE .mesh file.
|
inherited |
Ogre::MeshSerializer::MeshSerializer | ( | VaoManager * | vaoManager | ) |
|
virtual |
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 |
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.
void Ogre::MeshSerializer::exportMesh | ( | const Mesh * | pMesh, |
DataStreamPtr | stream, | ||
Endian | endianMode = 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.
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. |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
operator new, with debug line info
|
inlineinherited |
placement operator new
|
inlineinherited |
|
inlineinherited |
array operator new, with debug line info
void Ogre::MeshSerializer::setListener | ( | MeshSerializerListener * | listener | ) |
Sets the listener for this serializer.