\hypertarget{class_ogre_1_1_material_serializer_1_1_listener}{}\doxysection{Ogre\+::Material\+Serializer\+::Listener Class Reference}
\label{class_ogre_1_1_material_serializer_1_1_listener}\index{Ogre::MaterialSerializer::Listener@{Ogre::MaterialSerializer::Listener}}


Class that allows listening in on the various stages of material serialization process.  




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



Inheritance diagram for Ogre\+::Material\+Serializer\+::Listener\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=232pt]{class_ogre_1_1_material_serializer_1_1_listener__inherit__graph}
\end{center}
\end{figure}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual \mbox{\hyperlink{class_ogre_1_1_material_serializer_1_1_listener_a13e6cb61dc6c4c5663de032e8d027551}{$\sim$\+Listener}} ()
\item 
void \mbox{\hyperlink{class_ogre_1_1_material_serializer_1_1_listener_a192341794a44b9096b891b676be06b35}{gpu\+Program\+Ref\+Event\+Raised}} (\mbox{\hyperlink{class_ogre_1_1_material_serializer}{Material\+Serializer}} $\ast$ser, \mbox{\hyperlink{class_ogre_1_1_material_serializer_a237c1a8b1e58e28c793e1c3febc86d4b}{Serialize\+Event}} event, bool \&skip, const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&attrib, const \mbox{\hyperlink{namespace_ogre_a2c452533979dfdf73a296288e94d920b}{Gpu\+Program\+Ptr}} \&program, const \mbox{\hyperlink{namespace_ogre_aff0eec6634048fd4d65b785264243e6c}{Gpu\+Program\+Parameters\+Shared\+Ptr}} \&params, \mbox{\hyperlink{class_ogre_1_1_gpu_program_parameters}{Gpu\+Program\+Parameters}} $\ast$default\+Params)
\begin{DoxyCompactList}\small\item\em Called when G\+PU program reference section event raised. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{class_ogre_1_1_material_serializer_1_1_listener_a12692ae5f00a3012d83342ab7539dadd}{material\+Event\+Raised}} (\mbox{\hyperlink{class_ogre_1_1_material_serializer}{Material\+Serializer}} $\ast$ser, \mbox{\hyperlink{class_ogre_1_1_material_serializer_a237c1a8b1e58e28c793e1c3febc86d4b}{Serialize\+Event}} event, bool \&skip, const \mbox{\hyperlink{class_ogre_1_1_material}{Material}} $\ast$mat)
\begin{DoxyCompactList}\small\item\em Called when material section event raised. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{class_ogre_1_1_material_serializer_1_1_listener_a22fbc4529e17ce36172a890868973d6c}{pass\+Event\+Raised}} (\mbox{\hyperlink{class_ogre_1_1_material_serializer}{Material\+Serializer}} $\ast$ser, \mbox{\hyperlink{class_ogre_1_1_material_serializer_a237c1a8b1e58e28c793e1c3febc86d4b}{Serialize\+Event}} event, bool \&skip, const \mbox{\hyperlink{class_ogre_1_1_pass}{Pass}} $\ast$pass)
\begin{DoxyCompactList}\small\item\em Called when pass section event raised. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{class_ogre_1_1_material_serializer_1_1_listener_ae25d7325accb65561cab814d2731530f}{technique\+Event\+Raised}} (\mbox{\hyperlink{class_ogre_1_1_material_serializer}{Material\+Serializer}} $\ast$ser, \mbox{\hyperlink{class_ogre_1_1_material_serializer_a237c1a8b1e58e28c793e1c3febc86d4b}{Serialize\+Event}} event, bool \&skip, const \mbox{\hyperlink{class_ogre_1_1_technique}{Technique}} $\ast$tech)
\begin{DoxyCompactList}\small\item\em Called when technique section event raised. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{class_ogre_1_1_material_serializer_1_1_listener_a6d101b60cbb7b19a25ae7bf030552b1a}{texture\+Unit\+State\+Event\+Raised}} (\mbox{\hyperlink{class_ogre_1_1_material_serializer}{Material\+Serializer}} $\ast$ser, \mbox{\hyperlink{class_ogre_1_1_material_serializer_a237c1a8b1e58e28c793e1c3febc86d4b}{Serialize\+Event}} event, bool \&skip, const \mbox{\hyperlink{class_ogre_1_1_texture_unit_state}{Texture\+Unit\+State}} $\ast$texture\+Unit)
\begin{DoxyCompactList}\small\item\em Called when texture unit state section event raised. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Class that allows listening in on the various stages of material serialization process. 

Sub-\/classing it enable extending the attribute set of any part in the material. 

\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_material_serializer_1_1_listener_a13e6cb61dc6c4c5663de032e8d027551}\label{class_ogre_1_1_material_serializer_1_1_listener_a13e6cb61dc6c4c5663de032e8d027551}} 
\index{Ogre::MaterialSerializer::Listener@{Ogre::MaterialSerializer::Listener}!````~Listener@{$\sim$Listener}}
\index{````~Listener@{$\sim$Listener}!Ogre::MaterialSerializer::Listener@{Ogre::MaterialSerializer::Listener}}
\doxysubsubsection{\texorpdfstring{$\sim$Listener()}{~Listener()}}
{\footnotesize\ttfamily virtual Ogre\+::\+Material\+Serializer\+::\+Listener\+::$\sim$\+Listener (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_material_serializer_1_1_listener_a12692ae5f00a3012d83342ab7539dadd}\label{class_ogre_1_1_material_serializer_1_1_listener_a12692ae5f00a3012d83342ab7539dadd}} 
\index{Ogre::MaterialSerializer::Listener@{Ogre::MaterialSerializer::Listener}!materialEventRaised@{materialEventRaised}}
\index{materialEventRaised@{materialEventRaised}!Ogre::MaterialSerializer::Listener@{Ogre::MaterialSerializer::Listener}}
\doxysubsubsection{\texorpdfstring{materialEventRaised()}{materialEventRaised()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Material\+Serializer\+::\+Listener\+::material\+Event\+Raised (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_ogre_1_1_material_serializer}{Material\+Serializer}} $\ast$}]{ser,  }\item[{\mbox{\hyperlink{class_ogre_1_1_material_serializer_a237c1a8b1e58e28c793e1c3febc86d4b}{Serialize\+Event}}}]{event,  }\item[{bool \&}]{skip,  }\item[{const \mbox{\hyperlink{class_ogre_1_1_material}{Material}} $\ast$}]{mat }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Called when material section event raised. 

~\newline
 
\begin{DoxyParams}{Parameters}
{\em ser} & The \mbox{\hyperlink{class_ogre_1_1_material_serializer}{Material\+Serializer}} instance that writes the given material. \\
\hline
{\em event} & The current section writing stage. \\
\hline
{\em skip} & May set to true by sub-\/class instances in order to skip the following section write. This parameter relevant only when stage equals M\+S\+E\+\_\+\+P\+R\+E\+\_\+\+W\+R\+I\+TE. \\
\hline
{\em mat} & The material that is being written. ~\newline
 \\
\hline
\end{DoxyParams}


Reimplemented in \mbox{\hyperlink{group___r_t_shader_ga0c4d6065a7366a2c7cec871582b59662}{Ogre\+::\+R\+T\+Shader\+::\+S\+G\+Material\+Serializer\+Listener}}.

\mbox{\Hypertarget{class_ogre_1_1_material_serializer_1_1_listener_ae25d7325accb65561cab814d2731530f}\label{class_ogre_1_1_material_serializer_1_1_listener_ae25d7325accb65561cab814d2731530f}} 
\index{Ogre::MaterialSerializer::Listener@{Ogre::MaterialSerializer::Listener}!techniqueEventRaised@{techniqueEventRaised}}
\index{techniqueEventRaised@{techniqueEventRaised}!Ogre::MaterialSerializer::Listener@{Ogre::MaterialSerializer::Listener}}
\doxysubsubsection{\texorpdfstring{techniqueEventRaised()}{techniqueEventRaised()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Material\+Serializer\+::\+Listener\+::technique\+Event\+Raised (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_ogre_1_1_material_serializer}{Material\+Serializer}} $\ast$}]{ser,  }\item[{\mbox{\hyperlink{class_ogre_1_1_material_serializer_a237c1a8b1e58e28c793e1c3febc86d4b}{Serialize\+Event}}}]{event,  }\item[{bool \&}]{skip,  }\item[{const \mbox{\hyperlink{class_ogre_1_1_technique}{Technique}} $\ast$}]{tech }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Called when technique section event raised. 

~\newline
 
\begin{DoxyParams}{Parameters}
{\em ser} & The \mbox{\hyperlink{class_ogre_1_1_material_serializer}{Material\+Serializer}} instance that writes the given material. \\
\hline
{\em event} & The current section writing stage. \\
\hline
{\em skip} & May set to true by sub-\/class instances in order to skip the following section write. This parameter relevant only when stage equals M\+S\+E\+\_\+\+P\+R\+E\+\_\+\+W\+R\+I\+TE. \\
\hline
{\em tech} & The technique that is being written. ~\newline
 \\
\hline
\end{DoxyParams}


Reimplemented in \mbox{\hyperlink{group___r_t_shader_gae69f34379ca56e44da81e6bb94e569d2}{Ogre\+::\+R\+T\+Shader\+::\+S\+G\+Material\+Serializer\+Listener}}.

\mbox{\Hypertarget{class_ogre_1_1_material_serializer_1_1_listener_a22fbc4529e17ce36172a890868973d6c}\label{class_ogre_1_1_material_serializer_1_1_listener_a22fbc4529e17ce36172a890868973d6c}} 
\index{Ogre::MaterialSerializer::Listener@{Ogre::MaterialSerializer::Listener}!passEventRaised@{passEventRaised}}
\index{passEventRaised@{passEventRaised}!Ogre::MaterialSerializer::Listener@{Ogre::MaterialSerializer::Listener}}
\doxysubsubsection{\texorpdfstring{passEventRaised()}{passEventRaised()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Material\+Serializer\+::\+Listener\+::pass\+Event\+Raised (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_ogre_1_1_material_serializer}{Material\+Serializer}} $\ast$}]{ser,  }\item[{\mbox{\hyperlink{class_ogre_1_1_material_serializer_a237c1a8b1e58e28c793e1c3febc86d4b}{Serialize\+Event}}}]{event,  }\item[{bool \&}]{skip,  }\item[{const \mbox{\hyperlink{class_ogre_1_1_pass}{Pass}} $\ast$}]{pass }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Called when pass section event raised. 

~\newline
 
\begin{DoxyParams}{Parameters}
{\em ser} & The \mbox{\hyperlink{class_ogre_1_1_material_serializer}{Material\+Serializer}} instance that writes the given material. \\
\hline
{\em event} & The current section writing stage. \\
\hline
{\em skip} & May set to true by sub-\/class instances in order to skip the following section write. This parameter relevant only when stage equals M\+S\+E\+\_\+\+P\+R\+E\+\_\+\+W\+R\+I\+TE. \\
\hline
{\em pass} & The pass that is being written. ~\newline
 \\
\hline
\end{DoxyParams}


Reimplemented in \mbox{\hyperlink{group___r_t_shader_gae7cd570f009ae6daa1436bb3a1b93b1c}{Ogre\+::\+R\+T\+Shader\+::\+S\+G\+Material\+Serializer\+Listener}}.

\mbox{\Hypertarget{class_ogre_1_1_material_serializer_1_1_listener_a192341794a44b9096b891b676be06b35}\label{class_ogre_1_1_material_serializer_1_1_listener_a192341794a44b9096b891b676be06b35}} 
\index{Ogre::MaterialSerializer::Listener@{Ogre::MaterialSerializer::Listener}!gpuProgramRefEventRaised@{gpuProgramRefEventRaised}}
\index{gpuProgramRefEventRaised@{gpuProgramRefEventRaised}!Ogre::MaterialSerializer::Listener@{Ogre::MaterialSerializer::Listener}}
\doxysubsubsection{\texorpdfstring{gpuProgramRefEventRaised()}{gpuProgramRefEventRaised()}}
{\footnotesize\ttfamily void Ogre\+::\+Material\+Serializer\+::\+Listener\+::gpu\+Program\+Ref\+Event\+Raised (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_ogre_1_1_material_serializer}{Material\+Serializer}} $\ast$}]{ser,  }\item[{\mbox{\hyperlink{class_ogre_1_1_material_serializer_a237c1a8b1e58e28c793e1c3febc86d4b}{Serialize\+Event}}}]{event,  }\item[{bool \&}]{skip,  }\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{attrib,  }\item[{const \mbox{\hyperlink{namespace_ogre_a2c452533979dfdf73a296288e94d920b}{Gpu\+Program\+Ptr}} \&}]{program,  }\item[{const \mbox{\hyperlink{namespace_ogre_aff0eec6634048fd4d65b785264243e6c}{Gpu\+Program\+Parameters\+Shared\+Ptr}} \&}]{params,  }\item[{\mbox{\hyperlink{class_ogre_1_1_gpu_program_parameters}{Gpu\+Program\+Parameters}} $\ast$}]{default\+Params }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Called when G\+PU program reference section event raised. 

~\newline
 
\begin{DoxyParams}{Parameters}
{\em ser} & The \mbox{\hyperlink{class_ogre_1_1_material_serializer}{Material\+Serializer}} instance that writes the given material. \\
\hline
{\em event} & The current section writing stage. \\
\hline
{\em skip} & May set to true by sub-\/class instances in order to skip the following section write. This parameter relevant only when stage equals M\+S\+E\+\_\+\+P\+R\+E\+\_\+\+W\+R\+I\+TE. \\
\hline
{\em attrib} & The G\+PU program reference description (vertex\+\_\+program\+\_\+ref, fragment\+\_\+program\+\_\+ref, etc). ~\newline
 \\
\hline
{\em program} & The program being written. \\
\hline
{\em params} & The program parameters. \\
\hline
{\em default\+Params} & The default program parameters. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_material_serializer_1_1_listener_a6d101b60cbb7b19a25ae7bf030552b1a}\label{class_ogre_1_1_material_serializer_1_1_listener_a6d101b60cbb7b19a25ae7bf030552b1a}} 
\index{Ogre::MaterialSerializer::Listener@{Ogre::MaterialSerializer::Listener}!textureUnitStateEventRaised@{textureUnitStateEventRaised}}
\index{textureUnitStateEventRaised@{textureUnitStateEventRaised}!Ogre::MaterialSerializer::Listener@{Ogre::MaterialSerializer::Listener}}
\doxysubsubsection{\texorpdfstring{textureUnitStateEventRaised()}{textureUnitStateEventRaised()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Material\+Serializer\+::\+Listener\+::texture\+Unit\+State\+Event\+Raised (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_ogre_1_1_material_serializer}{Material\+Serializer}} $\ast$}]{ser,  }\item[{\mbox{\hyperlink{class_ogre_1_1_material_serializer_a237c1a8b1e58e28c793e1c3febc86d4b}{Serialize\+Event}}}]{event,  }\item[{bool \&}]{skip,  }\item[{const \mbox{\hyperlink{class_ogre_1_1_texture_unit_state}{Texture\+Unit\+State}} $\ast$}]{texture\+Unit }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Called when texture unit state section event raised. 

~\newline
 
\begin{DoxyParams}{Parameters}
{\em ser} & The \mbox{\hyperlink{class_ogre_1_1_material_serializer}{Material\+Serializer}} instance that writes the given material. \\
\hline
{\em event} & The current section writing stage. \\
\hline
{\em skip} & May set to true by sub-\/class instances in order to skip the following section write. This parameter relevant only when stage equals M\+S\+E\+\_\+\+P\+R\+E\+\_\+\+W\+R\+I\+TE. \\
\hline
{\em texture\+Unit} & The texture unit state that is being written. ~\newline
 \\
\hline
\end{DoxyParams}


Reimplemented in \mbox{\hyperlink{group___r_t_shader_gaf51bcbc1062b97a10c74ea7e70dec651}{Ogre\+::\+R\+T\+Shader\+::\+S\+G\+Material\+Serializer\+Listener}}.



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