\hypertarget{class_ogre_1_1_mesh_serializer}{}\doxysection{Ogre\+::Mesh\+Serializer Class Reference}
\label{class_ogre_1_1_mesh_serializer}\index{Ogre::MeshSerializer@{Ogre::MeshSerializer}}


Class for serialising mesh data to/from an O\+G\+RE .mesh file.  




{\ttfamily \#include $<$Ogre\+Mesh\+Serializer.\+h$>$}



Inheritance diagram for Ogre\+::Mesh\+Serializer\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=198pt]{class_ogre_1_1_mesh_serializer__inherit__graph}
\end{center}
\end{figure}
\doxysubsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
enum \mbox{\hyperlink{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39}{Endian}} \{ \mbox{\hyperlink{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39aed60ca999861d8939cf57f19090c70ef}{E\+N\+D\+I\+A\+N\+\_\+\+N\+A\+T\+I\+VE}}, 
\mbox{\hyperlink{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39a7f044c7683a7374276db6e7060f51240}{E\+N\+D\+I\+A\+N\+\_\+\+B\+IG}}, 
\mbox{\hyperlink{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39a10ce3b8f55cba526f6bc8237d8b25cc3}{E\+N\+D\+I\+A\+N\+\_\+\+L\+I\+T\+T\+LE}}
 \}
\begin{DoxyCompactList}\small\item\em The endianness of written files. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_ogre_1_1_mesh_serializer_a909bfb50bcf347edbdf7564e0ecb92b5}{Mesh\+Serializer}} ()
\item 
virtual \mbox{\hyperlink{class_ogre_1_1_mesh_serializer_a2e5c4987d4a0fa64430cb612e12c2e8c}{$\sim$\+Mesh\+Serializer}} ()
\item 
void \mbox{\hyperlink{class_ogre_1_1_mesh_serializer_a4de99d7b747bb944b269df88c2b169db}{export\+Mesh}} (const \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}} $\ast$p\+Mesh, const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&filename, \mbox{\hyperlink{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39}{Endian}} endian\+Mode=\mbox{\hyperlink{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39aed60ca999861d8939cf57f19090c70ef}{E\+N\+D\+I\+A\+N\+\_\+\+N\+A\+T\+I\+VE}})
\begin{DoxyCompactList}\small\item\em Exports a mesh to the file specified, in the latest format. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_mesh_serializer_a55ce1998a5ef0fa8354e6e9c63026d0a}{export\+Mesh}} (const \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}} $\ast$p\+Mesh, const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&filename, \mbox{\hyperlink{namespace_ogre_ac036050d60e78ed73d02e95fe79884a7}{Mesh\+Version}} version, \mbox{\hyperlink{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39}{Endian}} endian\+Mode=\mbox{\hyperlink{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39aed60ca999861d8939cf57f19090c70ef}{E\+N\+D\+I\+A\+N\+\_\+\+N\+A\+T\+I\+VE}})
\begin{DoxyCompactList}\small\item\em Exports a mesh to the file specified, in a specific version format. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_mesh_serializer_a5afe0f0c339dbac1efd590b1caf931ca}{export\+Mesh}} (const \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}} $\ast$p\+Mesh, \mbox{\hyperlink{namespace_ogre_a8a2a961b4205aacff9c01e81e08d7781}{Data\+Stream\+Ptr}} stream, \mbox{\hyperlink{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39}{Endian}} endian\+Mode=\mbox{\hyperlink{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39aed60ca999861d8939cf57f19090c70ef}{E\+N\+D\+I\+A\+N\+\_\+\+N\+A\+T\+I\+VE}})
\begin{DoxyCompactList}\small\item\em Exports a mesh to the stream specified, in the latest format. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_mesh_serializer_a3d67f41bdd9450f3c952976f2f397855}{export\+Mesh}} (const \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}} $\ast$p\+Mesh, \mbox{\hyperlink{namespace_ogre_a8a2a961b4205aacff9c01e81e08d7781}{Data\+Stream\+Ptr}} stream, \mbox{\hyperlink{namespace_ogre_ac036050d60e78ed73d02e95fe79884a7}{Mesh\+Version}} version, \mbox{\hyperlink{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39}{Endian}} endian\+Mode=\mbox{\hyperlink{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39aed60ca999861d8939cf57f19090c70ef}{E\+N\+D\+I\+A\+N\+\_\+\+N\+A\+T\+I\+VE}})
\begin{DoxyCompactList}\small\item\em Exports a mesh to the stream specified, in a specific version format. \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_ogre_1_1_mesh_serializer_listener}{Mesh\+Serializer\+Listener}} $\ast$ \mbox{\hyperlink{class_ogre_1_1_mesh_serializer_aceaa15a69b65de9bc8df1c6d26ea5ec4}{get\+Listener}} ()
\begin{DoxyCompactList}\small\item\em Returns the current listener. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_mesh_serializer_a7282f52dcfc65e65f32a0ca6af67e1c3}{import\+Mesh}} (\mbox{\hyperlink{namespace_ogre_a8a2a961b4205aacff9c01e81e08d7781}{Data\+Stream\+Ptr}} \&stream, \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}} $\ast$p\+Dest)
\begin{DoxyCompactList}\small\item\em Imports \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}} and (optionally) \mbox{\hyperlink{class_ogre_1_1_material}{Material}} data from a .mesh file \mbox{\hyperlink{class_ogre_1_1_data_stream}{Data\+Stream}}. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_mesh_serializer_a8d70bd634174eb89a4578152d84f3f15}{set\+Listener}} (\mbox{\hyperlink{class_ogre_1_1_mesh_serializer_listener}{Mesh\+Serializer\+Listener}} $\ast$listener)
\begin{DoxyCompactList}\small\item\em Sets the listener for this serializer. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Class for serialising mesh data to/from an O\+G\+RE .mesh file. 

\begin{DoxyRemark}{Remarks}
This class allows exporters to write O\+G\+RE .mesh files easily, and allows the O\+G\+RE engine to import .mesh files into instantiated O\+G\+RE Meshes. Note that a .mesh file can include not only the \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}}, but also definitions of any Materials it uses (although this is optional, the .mesh can rely on the \mbox{\hyperlink{class_ogre_1_1_material}{Material}} being loaded from another source, especially useful if you want to take advantage of O\+G\+RE\textquotesingle{}s advanced \mbox{\hyperlink{class_ogre_1_1_material}{Material}} properties which may not be available in your modeller). 
\end{DoxyRemark}
\begin{DoxyParagraph}{}
To export a \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}}\+:
\begin{DoxyEnumerate}
\item Use the \mbox{\hyperlink{class_ogre_1_1_material_manager}{Material\+Manager}} methods to create any dependent \mbox{\hyperlink{class_ogre_1_1_material}{Material}} objects, if you want to export them with the \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}}. 
\item Create a \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}} object and populate it using it\textquotesingle{}s methods. 
\item Call the export\+Mesh method 
\end{DoxyEnumerate}
\end{DoxyParagraph}
\begin{DoxyParagraph}{}
It\textquotesingle{}s important to realise that this exporter uses O\+G\+RE terminology. In this context, \textquotesingle{}\mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}}\textquotesingle{} means a top-\/level mesh structure which can actually contain many Sub\+Meshes, each of which has only one \mbox{\hyperlink{class_ogre_1_1_material}{Material}}. Modelling packages may refer to these differently, for example in Milkshape, it says \textquotesingle{}Model\textquotesingle{} instead of \textquotesingle{}\mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}}\textquotesingle{} and \textquotesingle{}\mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}}\textquotesingle{} instead of \textquotesingle{}\mbox{\hyperlink{class_ogre_1_1_sub_mesh}{Sub\+Mesh}}\textquotesingle{}, but the theory is the same. 
\end{DoxyParagraph}


\doxysubsection{Member Enumeration Documentation}
\mbox{\Hypertarget{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39}\label{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39}} 
\index{Ogre::MeshSerializer@{Ogre::MeshSerializer}!Endian@{Endian}}
\index{Endian@{Endian}!Ogre::MeshSerializer@{Ogre::MeshSerializer}}
\doxysubsubsection{\texorpdfstring{Endian}{Endian}}
{\footnotesize\ttfamily enum \mbox{\hyperlink{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39}{Ogre\+::\+Serializer\+::\+Endian}}\hspace{0.3cm}{\ttfamily [inherited]}}



The endianness of written files. 

\begin{DoxyEnumFields}{Enumerator}
\raisebox{\heightof{T}}[0pt][0pt]{\index{ENDIAN\_NATIVE@{ENDIAN\_NATIVE}!Ogre::MeshSerializer@{Ogre::MeshSerializer}}\index{Ogre::MeshSerializer@{Ogre::MeshSerializer}!ENDIAN\_NATIVE@{ENDIAN\_NATIVE}}}\mbox{\Hypertarget{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39aed60ca999861d8939cf57f19090c70ef}\label{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39aed60ca999861d8939cf57f19090c70ef}} 
E\+N\+D\+I\+A\+N\+\_\+\+N\+A\+T\+I\+VE&Use the platform native endian. \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{ENDIAN\_BIG@{ENDIAN\_BIG}!Ogre::MeshSerializer@{Ogre::MeshSerializer}}\index{Ogre::MeshSerializer@{Ogre::MeshSerializer}!ENDIAN\_BIG@{ENDIAN\_BIG}}}\mbox{\Hypertarget{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39a7f044c7683a7374276db6e7060f51240}\label{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39a7f044c7683a7374276db6e7060f51240}} 
E\+N\+D\+I\+A\+N\+\_\+\+B\+IG&Use big endian (0x1000 is serialised as 0x10 0x00) \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{ENDIAN\_LITTLE@{ENDIAN\_LITTLE}!Ogre::MeshSerializer@{Ogre::MeshSerializer}}\index{Ogre::MeshSerializer@{Ogre::MeshSerializer}!ENDIAN\_LITTLE@{ENDIAN\_LITTLE}}}\mbox{\Hypertarget{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39a10ce3b8f55cba526f6bc8237d8b25cc3}\label{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39a10ce3b8f55cba526f6bc8237d8b25cc3}} 
E\+N\+D\+I\+A\+N\+\_\+\+L\+I\+T\+T\+LE&Use little endian (0x1000 is serialised as 0x00 0x10) \\
\hline

\end{DoxyEnumFields}


\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_mesh_serializer_a909bfb50bcf347edbdf7564e0ecb92b5}\label{class_ogre_1_1_mesh_serializer_a909bfb50bcf347edbdf7564e0ecb92b5}} 
\index{Ogre::MeshSerializer@{Ogre::MeshSerializer}!MeshSerializer@{MeshSerializer}}
\index{MeshSerializer@{MeshSerializer}!Ogre::MeshSerializer@{Ogre::MeshSerializer}}
\doxysubsubsection{\texorpdfstring{MeshSerializer()}{MeshSerializer()}}
{\footnotesize\ttfamily Ogre\+::\+Mesh\+Serializer\+::\+Mesh\+Serializer (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}

\mbox{\Hypertarget{class_ogre_1_1_mesh_serializer_a2e5c4987d4a0fa64430cb612e12c2e8c}\label{class_ogre_1_1_mesh_serializer_a2e5c4987d4a0fa64430cb612e12c2e8c}} 
\index{Ogre::MeshSerializer@{Ogre::MeshSerializer}!````~MeshSerializer@{$\sim$MeshSerializer}}
\index{````~MeshSerializer@{$\sim$MeshSerializer}!Ogre::MeshSerializer@{Ogre::MeshSerializer}}
\doxysubsubsection{\texorpdfstring{$\sim$MeshSerializer()}{~MeshSerializer()}}
{\footnotesize\ttfamily virtual Ogre\+::\+Mesh\+Serializer\+::$\sim$\+Mesh\+Serializer (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_mesh_serializer_a4de99d7b747bb944b269df88c2b169db}\label{class_ogre_1_1_mesh_serializer_a4de99d7b747bb944b269df88c2b169db}} 
\index{Ogre::MeshSerializer@{Ogre::MeshSerializer}!exportMesh@{exportMesh}}
\index{exportMesh@{exportMesh}!Ogre::MeshSerializer@{Ogre::MeshSerializer}}
\doxysubsubsection{\texorpdfstring{exportMesh()}{exportMesh()}\hspace{0.1cm}{\footnotesize\ttfamily [1/4]}}
{\footnotesize\ttfamily void Ogre\+::\+Mesh\+Serializer\+::export\+Mesh (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}} $\ast$}]{p\+Mesh,  }\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{filename,  }\item[{\mbox{\hyperlink{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39}{Endian}}}]{endian\+Mode = {\ttfamily \mbox{\hyperlink{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39aed60ca999861d8939cf57f19090c70ef}{E\+N\+D\+I\+A\+N\+\_\+\+N\+A\+T\+I\+VE}}} }\end{DoxyParamCaption})}



Exports a mesh to the file specified, in the latest format. 

\begin{DoxyRemark}{Remarks}
This method takes an externally created \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}} object, and exports it to a .mesh file in the latest format version available. 
\end{DoxyRemark}

\begin{DoxyParams}{Parameters}
{\em p\+Mesh} & Pointer to the \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}} to export \\
\hline
{\em filename} & The destination filename \\
\hline
{\em endian\+Mode} & The endian mode of the written file \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_mesh_serializer_a55ce1998a5ef0fa8354e6e9c63026d0a}\label{class_ogre_1_1_mesh_serializer_a55ce1998a5ef0fa8354e6e9c63026d0a}} 
\index{Ogre::MeshSerializer@{Ogre::MeshSerializer}!exportMesh@{exportMesh}}
\index{exportMesh@{exportMesh}!Ogre::MeshSerializer@{Ogre::MeshSerializer}}
\doxysubsubsection{\texorpdfstring{exportMesh()}{exportMesh()}\hspace{0.1cm}{\footnotesize\ttfamily [2/4]}}
{\footnotesize\ttfamily void Ogre\+::\+Mesh\+Serializer\+::export\+Mesh (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}} $\ast$}]{p\+Mesh,  }\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{filename,  }\item[{\mbox{\hyperlink{namespace_ogre_ac036050d60e78ed73d02e95fe79884a7}{Mesh\+Version}}}]{version,  }\item[{\mbox{\hyperlink{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39}{Endian}}}]{endian\+Mode = {\ttfamily \mbox{\hyperlink{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39aed60ca999861d8939cf57f19090c70ef}{E\+N\+D\+I\+A\+N\+\_\+\+N\+A\+T\+I\+VE}}} }\end{DoxyParamCaption})}



Exports a mesh to the file specified, in a specific version format. 

\begin{DoxyRemark}{Remarks}
This method takes an externally created \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}} object, and exports it to a .mesh file in the specified format version. Note that picking a format version other that the latest will cause some information to be lost. 
\end{DoxyRemark}

\begin{DoxyParams}{Parameters}
{\em p\+Mesh} & Pointer to the \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}} to export \\
\hline
{\em filename} & The destination filename \\
\hline
{\em version} & \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}} version to write \\
\hline
{\em endian\+Mode} & The endian mode of the written file \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_mesh_serializer_a5afe0f0c339dbac1efd590b1caf931ca}\label{class_ogre_1_1_mesh_serializer_a5afe0f0c339dbac1efd590b1caf931ca}} 
\index{Ogre::MeshSerializer@{Ogre::MeshSerializer}!exportMesh@{exportMesh}}
\index{exportMesh@{exportMesh}!Ogre::MeshSerializer@{Ogre::MeshSerializer}}
\doxysubsubsection{\texorpdfstring{exportMesh()}{exportMesh()}\hspace{0.1cm}{\footnotesize\ttfamily [3/4]}}
{\footnotesize\ttfamily void Ogre\+::\+Mesh\+Serializer\+::export\+Mesh (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}} $\ast$}]{p\+Mesh,  }\item[{\mbox{\hyperlink{namespace_ogre_a8a2a961b4205aacff9c01e81e08d7781}{Data\+Stream\+Ptr}}}]{stream,  }\item[{\mbox{\hyperlink{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39}{Endian}}}]{endian\+Mode = {\ttfamily \mbox{\hyperlink{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39aed60ca999861d8939cf57f19090c70ef}{E\+N\+D\+I\+A\+N\+\_\+\+N\+A\+T\+I\+VE}}} }\end{DoxyParamCaption})}



Exports a mesh to the stream specified, in the latest format. 

\begin{DoxyRemark}{Remarks}
This method takes an externally created \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}} object, and exports it to a .mesh file in the latest format version. 
\end{DoxyRemark}

\begin{DoxyParams}{Parameters}
{\em p\+Mesh} & Pointer to the \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}} to export \\
\hline
{\em stream} & Writeable stream \\
\hline
{\em endian\+Mode} & The endian mode of the written file \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_mesh_serializer_a3d67f41bdd9450f3c952976f2f397855}\label{class_ogre_1_1_mesh_serializer_a3d67f41bdd9450f3c952976f2f397855}} 
\index{Ogre::MeshSerializer@{Ogre::MeshSerializer}!exportMesh@{exportMesh}}
\index{exportMesh@{exportMesh}!Ogre::MeshSerializer@{Ogre::MeshSerializer}}
\doxysubsubsection{\texorpdfstring{exportMesh()}{exportMesh()}\hspace{0.1cm}{\footnotesize\ttfamily [4/4]}}
{\footnotesize\ttfamily void Ogre\+::\+Mesh\+Serializer\+::export\+Mesh (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}} $\ast$}]{p\+Mesh,  }\item[{\mbox{\hyperlink{namespace_ogre_a8a2a961b4205aacff9c01e81e08d7781}{Data\+Stream\+Ptr}}}]{stream,  }\item[{\mbox{\hyperlink{namespace_ogre_ac036050d60e78ed73d02e95fe79884a7}{Mesh\+Version}}}]{version,  }\item[{\mbox{\hyperlink{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39}{Endian}}}]{endian\+Mode = {\ttfamily \mbox{\hyperlink{class_ogre_1_1_serializer_a5122d5a3161fb5fd819d9a0521fe9d39aed60ca999861d8939cf57f19090c70ef}{E\+N\+D\+I\+A\+N\+\_\+\+N\+A\+T\+I\+VE}}} }\end{DoxyParamCaption})}



Exports a mesh to the stream specified, in a specific version format. 

\begin{DoxyRemark}{Remarks}
This method takes an externally created \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}} object, and exports it to a .mesh file in the specified format version. Note that picking a format version other that the latest will cause some information to be lost. 
\end{DoxyRemark}

\begin{DoxyParams}{Parameters}
{\em p\+Mesh} & Pointer to the \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}} to export \\
\hline
{\em stream} & Writeable stream \\
\hline
{\em version} & \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}} version to write \\
\hline
{\em endian\+Mode} & The endian mode of the written file \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_mesh_serializer_a7282f52dcfc65e65f32a0ca6af67e1c3}\label{class_ogre_1_1_mesh_serializer_a7282f52dcfc65e65f32a0ca6af67e1c3}} 
\index{Ogre::MeshSerializer@{Ogre::MeshSerializer}!importMesh@{importMesh}}
\index{importMesh@{importMesh}!Ogre::MeshSerializer@{Ogre::MeshSerializer}}
\doxysubsubsection{\texorpdfstring{importMesh()}{importMesh()}}
{\footnotesize\ttfamily void Ogre\+::\+Mesh\+Serializer\+::import\+Mesh (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{namespace_ogre_a8a2a961b4205aacff9c01e81e08d7781}{Data\+Stream\+Ptr}} \&}]{stream,  }\item[{\mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}} $\ast$}]{p\+Dest }\end{DoxyParamCaption})}



Imports \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}} and (optionally) \mbox{\hyperlink{class_ogre_1_1_material}{Material}} data from a .mesh file \mbox{\hyperlink{class_ogre_1_1_data_stream}{Data\+Stream}}. 

\begin{DoxyRemark}{Remarks}
This method imports data from a \mbox{\hyperlink{class_ogre_1_1_data_stream}{Data\+Stream}} opened from a .mesh file and places it\textquotesingle{}s contents into the \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}} object which is passed in. 
\end{DoxyRemark}

\begin{DoxyParams}{Parameters}
{\em stream} & The \mbox{\hyperlink{class_ogre_1_1_data_stream}{Data\+Stream}} holding the .mesh data. Must be initialised (pos at the start of the buffer). \\
\hline
{\em p\+Dest} & Pointer to the \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}} object which will receive the data. Should be blank already. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_mesh_serializer_a8d70bd634174eb89a4578152d84f3f15}\label{class_ogre_1_1_mesh_serializer_a8d70bd634174eb89a4578152d84f3f15}} 
\index{Ogre::MeshSerializer@{Ogre::MeshSerializer}!setListener@{setListener}}
\index{setListener@{setListener}!Ogre::MeshSerializer@{Ogre::MeshSerializer}}
\doxysubsubsection{\texorpdfstring{setListener()}{setListener()}}
{\footnotesize\ttfamily void Ogre\+::\+Mesh\+Serializer\+::set\+Listener (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_ogre_1_1_mesh_serializer_listener}{Mesh\+Serializer\+Listener}} $\ast$}]{listener }\end{DoxyParamCaption})}



Sets the listener for this serializer. 

\mbox{\Hypertarget{class_ogre_1_1_mesh_serializer_aceaa15a69b65de9bc8df1c6d26ea5ec4}\label{class_ogre_1_1_mesh_serializer_aceaa15a69b65de9bc8df1c6d26ea5ec4}} 
\index{Ogre::MeshSerializer@{Ogre::MeshSerializer}!getListener@{getListener}}
\index{getListener@{getListener}!Ogre::MeshSerializer@{Ogre::MeshSerializer}}
\doxysubsubsection{\texorpdfstring{getListener()}{getListener()}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_ogre_1_1_mesh_serializer_listener}{Mesh\+Serializer\+Listener}}$\ast$ Ogre\+::\+Mesh\+Serializer\+::get\+Listener (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns the current listener. 



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{_ogre_mesh_serializer_8h}{Ogre\+Mesh\+Serializer.\+h}}\end{DoxyCompactItemize}
