![]() |
OGRE-Next 3.0.0
Object-Oriented Graphics Rendering Engine
|
Internal implementation of Mesh reading / writing for the latest version of the .mesh format. More...
#include <OgreMesh2SerializerImpl.h>
Inheritance diagram for Ogre::MeshSerializerImpl:Public Member Functions | |
| MeshSerializerImpl (VaoManager *vaoManager) | |
| virtual | ~MeshSerializerImpl () |
| void | exportMesh (const Mesh *pMesh, DataStreamPtr stream, Endian endianMode=ENDIAN_NATIVE) |
| Exports a mesh to the file specified. | |
| void | importMesh (DataStreamPtr &stream, Mesh *pDest, MeshSerializerListener *listener) |
| Imports Mesh and (optionally) Material data from a .mesh file DataStream. | |
Public Member Functions inherited from Ogre::Serializer | |
| Serializer () | |
| virtual | ~Serializer () |
Additional Inherited Members | |
Public Types inherited from Ogre::Serializer | |
| enum | Endian { ENDIAN_NATIVE , ENDIAN_BIG , ENDIAN_LITTLE } |
| The endianness of written files. More... | |
Internal implementation of Mesh reading / writing for the latest version of the .mesh format.
| Ogre::MeshSerializerImpl::MeshSerializerImpl | ( | VaoManager * | vaoManager | ) |
|
virtual |
| void Ogre::MeshSerializerImpl::exportMesh | ( | const Mesh * | pMesh, |
| DataStreamPtr | stream, | ||
| Endian | endianMode = ENDIAN_NATIVE ) |
Exports a mesh to the file specified.
| pMesh | Pointer to the Mesh to export |
| stream | The destination stream |
| endianMode | The endian mode for the written file |
References Ogre::Serializer::ENDIAN_NATIVE.
| void Ogre::MeshSerializerImpl::importMesh | ( | DataStreamPtr & | stream, |
| Mesh * | pDest, | ||
| MeshSerializerListener * | listener ) |
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. |