MCPcopy Create free account
hub / github.com/OGRECave/ogre-next / exportMesh

Method exportMesh

OgreMain/src/OgreMesh2Serializer.cpp:72–81  ·  view source on GitHub ↗

---------------------------------------------------------------------

Source from the content-addressed store, hash-verified

70 }
71 //---------------------------------------------------------------------
72 void MeshSerializer::exportMesh( const Mesh *pMesh, const String &filename, Endian endianMode )
73 {
74 std::fstream *f = OGRE_NEW_T( std::fstream, MEMCATEGORY_GENERAL )();
75 f->open( filename.c_str(), std::ios::binary | std::ios::out );
76 DataStreamPtr stream( OGRE_NEW FileStreamDataStream( f ) );
77
78 exportMesh( pMesh, stream, endianMode );
79
80 stream->close();
81 }
82 //---------------------------------------------------------------------
83 void MeshSerializer::exportMesh( const Mesh *pMesh, const String &filename, MeshVersion version,
84 Endian endianMode )

Callers

nothing calls this directly

Calls 6

exportMeshFunction · 0.50
openMethod · 0.45
c_strMethod · 0.45
closeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected