|
| 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. 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.
- To export a Mesh:
-
Use the MaterialManager methods to create any dependent Material objects, if you want to export them with the Mesh.
-
Create a Mesh object and populate it using it's methods.
-
Call the exportMesh method
- It's important to realise that this exporter uses OGRE terminology. In this context, 'Mesh' means a top-level mesh structure which can actually contain many SubMeshes, each of which has only one Material. Modelling packages may refer to these differently, for example in Milkshape, it says 'Model' instead of 'Mesh' and 'Mesh' instead of 'SubMesh', but the theory is the same.