\hypertarget{class_ogre_1_1_render_target_listener}{}\section{Ogre\+:\+:Render\+Target\+Listener Class Reference}
\label{class_ogre_1_1_render_target_listener}\index{Ogre\+::\+Render\+Target\+Listener@{Ogre\+::\+Render\+Target\+Listener}}


A interface class defining a listener which can be used to receive notifications of \hyperlink{class_ogre_1_1_render_target}{Render\+Target} events.  




{\ttfamily \#include $<$Ogre\+Render\+Target\+Listener.\+h$>$}



Inheritance diagram for Ogre\+:\+:Render\+Target\+Listener\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_ogre_1_1_render_target_listener__inherit__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual \hyperlink{class_ogre_1_1_render_target_listener_afb5752b727803f415b960ed9f2728f3a}{$\sim$\+Render\+Target\+Listener} ()
\item 
virtual void \hyperlink{class_ogre_1_1_render_target_listener_a722f37475162c91ee0dd6cebf03e63a3}{post\+Render\+Target\+Update} (const \hyperlink{struct_ogre_1_1_render_target_event}{Render\+Target\+Event} \&evt)
\begin{DoxyCompactList}\small\item\em Called just after a \hyperlink{class_ogre_1_1_render_target}{Render\+Target} has been rendered to. \end{DoxyCompactList}\item 
virtual void \hyperlink{class_ogre_1_1_render_target_listener_a343ada5be6be784ee83f3cb8ac48e319}{post\+Viewport\+Update} (const \hyperlink{struct_ogre_1_1_render_target_viewport_event}{Render\+Target\+Viewport\+Event} \&evt)
\begin{DoxyCompactList}\small\item\em Called just after a \hyperlink{class_ogre_1_1_viewport}{Viewport} on a \hyperlink{class_ogre_1_1_render_target}{Render\+Target} is to be updated. \end{DoxyCompactList}\item 
virtual void \hyperlink{class_ogre_1_1_render_target_listener_ae6e3dc0a3a760bf152513fafbf51f9b3}{pre\+Render\+Target\+Update} (const \hyperlink{struct_ogre_1_1_render_target_event}{Render\+Target\+Event} \&evt)
\begin{DoxyCompactList}\small\item\em Called just before a \hyperlink{class_ogre_1_1_render_target}{Render\+Target} is about to be rendered into. \end{DoxyCompactList}\item 
virtual void \hyperlink{class_ogre_1_1_render_target_listener_ae0f7f5f1cdf13b5870d0da1cc8f1bd64}{pre\+Viewport\+Update} (const \hyperlink{struct_ogre_1_1_render_target_viewport_event}{Render\+Target\+Viewport\+Event} \&evt)
\begin{DoxyCompactList}\small\item\em Called just before a \hyperlink{class_ogre_1_1_viewport}{Viewport} on a \hyperlink{class_ogre_1_1_render_target}{Render\+Target} is to be updated. \end{DoxyCompactList}\item 
virtual void \hyperlink{class_ogre_1_1_render_target_listener_ab901ef7073b680203caf86792c2151ee}{viewport\+Added} (const \hyperlink{struct_ogre_1_1_render_target_viewport_event}{Render\+Target\+Viewport\+Event} \&evt)
\begin{DoxyCompactList}\small\item\em Called to notify listener that a \hyperlink{class_ogre_1_1_viewport}{Viewport} has been added to the target in question. \end{DoxyCompactList}\item 
virtual void \hyperlink{class_ogre_1_1_render_target_listener_ae39efc7491a7bbd3d5e2e3e5f84796c2}{viewport\+Removed} (const \hyperlink{struct_ogre_1_1_render_target_viewport_event}{Render\+Target\+Viewport\+Event} \&evt)
\begin{DoxyCompactList}\small\item\em Called to notify listener that a \hyperlink{class_ogre_1_1_viewport}{Viewport} has been removed from the target in question. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
A interface class defining a listener which can be used to receive notifications of \hyperlink{class_ogre_1_1_render_target}{Render\+Target} events. 

\begin{DoxyRemark}{Remarks}
A \textquotesingle{}listener\textquotesingle{} is an interface designed to be called back when particular events are called. This class defines the interface relating to \hyperlink{class_ogre_1_1_render_target}{Render\+Target} events. In order to receive notifications of \hyperlink{class_ogre_1_1_render_target}{Render\+Target} events, you should create a subclass of \hyperlink{class_ogre_1_1_render_target_listener}{Render\+Target\+Listener} and override the methods for which you would like to customise the resulting processing. You should then call \hyperlink{class_ogre_1_1_render_target_a1799514a8ad7958919ca48c654a47e8e}{Render\+Target\+::add\+Listener} passing an instance of this class. There is no limit to the number of \hyperlink{class_ogre_1_1_render_target}{Render\+Target} listeners you can register, allowing you to register multiple listeners for different purposes.
\end{DoxyRemark}
\hyperlink{class_ogre_1_1_render_target}{Render\+Target} events occur before and after the target is updated as a whole, and before and after each viewport on that target is updated. Each \hyperlink{class_ogre_1_1_render_target}{Render\+Target} holds it\textquotesingle{}s own set of listeners, but you can register the same listener on multiple render targets if you like since the event contains details of the originating \hyperlink{class_ogre_1_1_render_target}{Render\+Target}. 

\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_render_target_listener_afb5752b727803f415b960ed9f2728f3a}\label{class_ogre_1_1_render_target_listener_afb5752b727803f415b960ed9f2728f3a}} 
\index{Ogre\+::\+Render\+Target\+Listener@{Ogre\+::\+Render\+Target\+Listener}!````~Render\+Target\+Listener@{$\sim$\+Render\+Target\+Listener}}
\index{````~Render\+Target\+Listener@{$\sim$\+Render\+Target\+Listener}!Ogre\+::\+Render\+Target\+Listener@{Ogre\+::\+Render\+Target\+Listener}}
\subsubsection{\texorpdfstring{$\sim$\+Render\+Target\+Listener()}{~RenderTargetListener()}}
{\footnotesize\ttfamily virtual Ogre\+::\+Render\+Target\+Listener\+::$\sim$\+Render\+Target\+Listener (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_render_target_listener_ae6e3dc0a3a760bf152513fafbf51f9b3}\label{class_ogre_1_1_render_target_listener_ae6e3dc0a3a760bf152513fafbf51f9b3}} 
\index{Ogre\+::\+Render\+Target\+Listener@{Ogre\+::\+Render\+Target\+Listener}!pre\+Render\+Target\+Update@{pre\+Render\+Target\+Update}}
\index{pre\+Render\+Target\+Update@{pre\+Render\+Target\+Update}!Ogre\+::\+Render\+Target\+Listener@{Ogre\+::\+Render\+Target\+Listener}}
\subsubsection{\texorpdfstring{pre\+Render\+Target\+Update()}{preRenderTargetUpdate()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Render\+Target\+Listener\+::pre\+Render\+Target\+Update (\begin{DoxyParamCaption}\item[{const \hyperlink{struct_ogre_1_1_render_target_event}{Render\+Target\+Event} \&}]{evt }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Called just before a \hyperlink{class_ogre_1_1_render_target}{Render\+Target} is about to be rendered into. 

\begin{DoxyRemark}{Remarks}
This event is raised just before any of the viewports on the target are rendered to. You can perform manual rendering operations here if you want, but please note that if the \hyperlink{class_ogre_1_1_viewport}{Viewport} objects attached to this target are set up to clear the background, you will lose whatever you render. If you want some kind of backdrop in this event you should turn off background clearing off on the viewports, and either clear the viewports yourself in this event handler before doing your rendering or just render over the top if you don\textquotesingle{}t need to. 
\end{DoxyRemark}


Reimplemented in \hyperlink{class_ogre_1_1_compositor_chain_a2209b014e144403acd39584e68850176}{Ogre\+::\+Compositor\+Chain}.

\mbox{\Hypertarget{class_ogre_1_1_render_target_listener_a722f37475162c91ee0dd6cebf03e63a3}\label{class_ogre_1_1_render_target_listener_a722f37475162c91ee0dd6cebf03e63a3}} 
\index{Ogre\+::\+Render\+Target\+Listener@{Ogre\+::\+Render\+Target\+Listener}!post\+Render\+Target\+Update@{post\+Render\+Target\+Update}}
\index{post\+Render\+Target\+Update@{post\+Render\+Target\+Update}!Ogre\+::\+Render\+Target\+Listener@{Ogre\+::\+Render\+Target\+Listener}}
\subsubsection{\texorpdfstring{post\+Render\+Target\+Update()}{postRenderTargetUpdate()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Render\+Target\+Listener\+::post\+Render\+Target\+Update (\begin{DoxyParamCaption}\item[{const \hyperlink{struct_ogre_1_1_render_target_event}{Render\+Target\+Event} \&}]{evt }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Called just after a \hyperlink{class_ogre_1_1_render_target}{Render\+Target} has been rendered to. 

\begin{DoxyRemark}{Remarks}
This event is called just after all the viewports attached to the target in question have been rendered to. You can perform your own manual rendering commands in this event handler if you like, these will be composited with the contents of the target already there (depending on the material settings you use etc). 
\end{DoxyRemark}


Reimplemented in \hyperlink{class_ogre_1_1_compositor_chain_a14097db252e2d5518763949112f48037}{Ogre\+::\+Compositor\+Chain}.

\mbox{\Hypertarget{class_ogre_1_1_render_target_listener_ae0f7f5f1cdf13b5870d0da1cc8f1bd64}\label{class_ogre_1_1_render_target_listener_ae0f7f5f1cdf13b5870d0da1cc8f1bd64}} 
\index{Ogre\+::\+Render\+Target\+Listener@{Ogre\+::\+Render\+Target\+Listener}!pre\+Viewport\+Update@{pre\+Viewport\+Update}}
\index{pre\+Viewport\+Update@{pre\+Viewport\+Update}!Ogre\+::\+Render\+Target\+Listener@{Ogre\+::\+Render\+Target\+Listener}}
\subsubsection{\texorpdfstring{pre\+Viewport\+Update()}{preViewportUpdate()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Render\+Target\+Listener\+::pre\+Viewport\+Update (\begin{DoxyParamCaption}\item[{const \hyperlink{struct_ogre_1_1_render_target_viewport_event}{Render\+Target\+Viewport\+Event} \&}]{evt }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Called just before a \hyperlink{class_ogre_1_1_viewport}{Viewport} on a \hyperlink{class_ogre_1_1_render_target}{Render\+Target} is to be updated. 

\begin{DoxyRemark}{Remarks}
This method is called before each viewport on the \hyperlink{class_ogre_1_1_render_target}{Render\+Target} is rendered to. You can use this to perform per-\/viewport settings changes, such as showing / hiding particular overlays. 
\end{DoxyRemark}


Reimplemented in \hyperlink{class_ogre_1_1_compositor_chain_a96e52b32f4a1048de8d4856af9268073}{Ogre\+::\+Compositor\+Chain}.

\mbox{\Hypertarget{class_ogre_1_1_render_target_listener_a343ada5be6be784ee83f3cb8ac48e319}\label{class_ogre_1_1_render_target_listener_a343ada5be6be784ee83f3cb8ac48e319}} 
\index{Ogre\+::\+Render\+Target\+Listener@{Ogre\+::\+Render\+Target\+Listener}!post\+Viewport\+Update@{post\+Viewport\+Update}}
\index{post\+Viewport\+Update@{post\+Viewport\+Update}!Ogre\+::\+Render\+Target\+Listener@{Ogre\+::\+Render\+Target\+Listener}}
\subsubsection{\texorpdfstring{post\+Viewport\+Update()}{postViewportUpdate()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Render\+Target\+Listener\+::post\+Viewport\+Update (\begin{DoxyParamCaption}\item[{const \hyperlink{struct_ogre_1_1_render_target_viewport_event}{Render\+Target\+Viewport\+Event} \&}]{evt }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Called just after a \hyperlink{class_ogre_1_1_viewport}{Viewport} on a \hyperlink{class_ogre_1_1_render_target}{Render\+Target} is to be updated. 

\begin{DoxyRemark}{Remarks}
This method is called after each viewport on the \hyperlink{class_ogre_1_1_render_target}{Render\+Target} is rendered to. 
\end{DoxyRemark}


Reimplemented in \hyperlink{class_ogre_1_1_compositor_chain_a9e713cfe63a4c69a99f05f6fa10299bf}{Ogre\+::\+Compositor\+Chain}.

\mbox{\Hypertarget{class_ogre_1_1_render_target_listener_ab901ef7073b680203caf86792c2151ee}\label{class_ogre_1_1_render_target_listener_ab901ef7073b680203caf86792c2151ee}} 
\index{Ogre\+::\+Render\+Target\+Listener@{Ogre\+::\+Render\+Target\+Listener}!viewport\+Added@{viewport\+Added}}
\index{viewport\+Added@{viewport\+Added}!Ogre\+::\+Render\+Target\+Listener@{Ogre\+::\+Render\+Target\+Listener}}
\subsubsection{\texorpdfstring{viewport\+Added()}{viewportAdded()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Render\+Target\+Listener\+::viewport\+Added (\begin{DoxyParamCaption}\item[{const \hyperlink{struct_ogre_1_1_render_target_viewport_event}{Render\+Target\+Viewport\+Event} \&}]{evt }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Called to notify listener that a \hyperlink{class_ogre_1_1_viewport}{Viewport} has been added to the target in question. 

\mbox{\Hypertarget{class_ogre_1_1_render_target_listener_ae39efc7491a7bbd3d5e2e3e5f84796c2}\label{class_ogre_1_1_render_target_listener_ae39efc7491a7bbd3d5e2e3e5f84796c2}} 
\index{Ogre\+::\+Render\+Target\+Listener@{Ogre\+::\+Render\+Target\+Listener}!viewport\+Removed@{viewport\+Removed}}
\index{viewport\+Removed@{viewport\+Removed}!Ogre\+::\+Render\+Target\+Listener@{Ogre\+::\+Render\+Target\+Listener}}
\subsubsection{\texorpdfstring{viewport\+Removed()}{viewportRemoved()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Render\+Target\+Listener\+::viewport\+Removed (\begin{DoxyParamCaption}\item[{const \hyperlink{struct_ogre_1_1_render_target_viewport_event}{Render\+Target\+Viewport\+Event} \&}]{evt }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Called to notify listener that a \hyperlink{class_ogre_1_1_viewport}{Viewport} has been removed from the target in question. 



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
\hyperlink{_ogre_render_target_listener_8h}{Ogre\+Render\+Target\+Listener.\+h}\end{DoxyCompactItemize}
