Go to the documentation of this file.
29 #ifndef __MeshSerializer_H__
30 #define __MeshSerializer_H__
39 class MeshSerializerListener;
105 Endian endianMode = ENDIAN_NATIVE);
120 Endian endianMode = ENDIAN_NATIVE);
131 Endian endianMode = ENDIAN_NATIVE);
146 Endian endianMode = ENDIAN_NATIVE);
172 : version(_ver), versionString(_string), impl(_impl) {}
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, DataStreamPtr stream, MeshVersion version, Endian endianMode=ENDIAN_NATIVE)
Exports a mesh to the stream specified, in a specific version format.
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
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.
virtual ~MeshSerializer()
@ MESH_VERSION_1_7
OGRE version v1.7+.
Class for serialising mesh data to/from an OGRE .mesh file.
void importMesh(DataStreamPtr &stream, Mesh *pDest)
Imports Mesh and (optionally) Material data from a .mesh file DataStream.
virtual void processMaterialName(Mesh *mesh, String *name)=0
Called to override the loading of the given named material.
vector< MeshVersionData * >::type MeshVersionDataList
MeshSerializerListener * mListener
virtual void processSkeletonName(Mesh *mesh, String *name)=0
Called to override the reference to a skeleton.
virtual ~MeshSerializerListener()
@ MESH_VERSION_1_0
OGRE version v1.0+.
MeshSerializerListener * getListener()
Returns the current listener.
MeshVersionDataList mVersionData
MeshVersionData(MeshVersion _ver, const String &_string, MeshSerializerImpl *_impl)
virtual void processMeshCompleted(Mesh *mesh)=0
Allows to do changes on mesh after it's completely loaded. For example you can generate LOD levels he...
void exportMesh(const Mesh *pMesh, DataStreamPtr stream, Endian endianMode=ENDIAN_NATIVE)
Exports a mesh to the stream specified, in the latest format.
MeshVersion
Mesh compatibility versions.
MeshSerializerImpl * impl
@ MESH_VERSION_LATEST
Latest version available.
@ MESH_VERSION_1_8
OGRE version v1.8+.
Resource holding data about 3D mesh.
void setListener(MeshSerializerListener *listener)
Sets the listener for this serializer.
Generic class for serialising data to / from binary stream-based files.
@ MESH_VERSION_1_4
OGRE version v1.4+.
Internal implementation of Mesh reading / writing for the latest version of the .mesh format.
@ MESH_VERSION_LEGACY
Legacy versions, DO NOT USE for writing.
Endian
The endianness of written files.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.