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


A interface class defining a listener which can be used to receive notifications of \mbox{\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}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual \mbox{\hyperlink{class_ogre_1_1_render_target_listener_afb5752b727803f415b960ed9f2728f3a}{$\sim$\+Render\+Target\+Listener}} ()
\item 
virtual void \mbox{\hyperlink{class_ogre_1_1_render_target_listener_a722f37475162c91ee0dd6cebf03e63a3}{post\+Render\+Target\+Update}} (const \mbox{\hyperlink{struct_ogre_1_1_render_target_event}{Render\+Target\+Event}} \&evt)
\begin{DoxyCompactList}\small\item\em Called just after a \mbox{\hyperlink{class_ogre_1_1_render_target}{Render\+Target}} has been rendered to. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{class_ogre_1_1_render_target_listener_a343ada5be6be784ee83f3cb8ac48e319}{post\+Viewport\+Update}} (const \mbox{\hyperlink{struct_ogre_1_1_render_target_viewport_event}{Render\+Target\+Viewport\+Event}} \&evt)
\begin{DoxyCompactList}\small\item\em Called just after a \mbox{\hyperlink{class_ogre_1_1_viewport}{Viewport}} on a \mbox{\hyperlink{class_ogre_1_1_render_target}{Render\+Target}} is to be updated. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{class_ogre_1_1_render_target_listener_ae6e3dc0a3a760bf152513fafbf51f9b3}{pre\+Render\+Target\+Update}} (const \mbox{\hyperlink{struct_ogre_1_1_render_target_event}{Render\+Target\+Event}} \&evt)
\begin{DoxyCompactList}\small\item\em Called just before a \mbox{\hyperlink{class_ogre_1_1_render_target}{Render\+Target}} is about to be rendered into. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{class_ogre_1_1_render_target_listener_ae0f7f5f1cdf13b5870d0da1cc8f1bd64}{pre\+Viewport\+Update}} (const \mbox{\hyperlink{struct_ogre_1_1_render_target_viewport_event}{Render\+Target\+Viewport\+Event}} \&evt)
\begin{DoxyCompactList}\small\item\em Called just before a \mbox{\hyperlink{class_ogre_1_1_viewport}{Viewport}} on a \mbox{\hyperlink{class_ogre_1_1_render_target}{Render\+Target}} is to be updated. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{class_ogre_1_1_render_target_listener_ab901ef7073b680203caf86792c2151ee}{viewport\+Added}} (const \mbox{\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 \mbox{\hyperlink{class_ogre_1_1_viewport}{Viewport}} has been added to the target in question. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{class_ogre_1_1_render_target_listener_ae39efc7491a7bbd3d5e2e3e5f84796c2}{viewport\+Removed}} (const \mbox{\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 \mbox{\hyperlink{class_ogre_1_1_viewport}{Viewport}} has been removed from the target in question. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
A interface class defining a listener which can be used to receive notifications of \mbox{\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 \mbox{\hyperlink{class_ogre_1_1_render_target}{Render\+Target}} events. In order to receive notifications of \mbox{\hyperlink{class_ogre_1_1_render_target}{Render\+Target}} events, you should create a subclass of \mbox{\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 \mbox{\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 \mbox{\hyperlink{class_ogre_1_1_render_target}{Render\+Target}} listeners you can register, allowing you to register multiple listeners for different purposes.
\end{DoxyRemark}
\mbox{\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 \mbox{\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 \mbox{\hyperlink{class_ogre_1_1_render_target}{Render\+Target}}. 

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



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_render_target_listener_ae6e3dc0a3a760bf152513fafbf51f9b3}\label{class_ogre_1_1_render_target_listener_ae6e3dc0a3a760bf152513fafbf51f9b3}} 
\index{Ogre::RenderTargetListener@{Ogre::RenderTargetListener}!preRenderTargetUpdate@{preRenderTargetUpdate}}
\index{preRenderTargetUpdate@{preRenderTargetUpdate}!Ogre::RenderTargetListener@{Ogre::RenderTargetListener}}
\doxysubsubsection{\texorpdfstring{preRenderTargetUpdate()}{preRenderTargetUpdate()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Render\+Target\+Listener\+::pre\+Render\+Target\+Update (\begin{DoxyParamCaption}\item[{const \mbox{\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 \mbox{\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 \mbox{\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 \mbox{\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::RenderTargetListener@{Ogre::RenderTargetListener}!postRenderTargetUpdate@{postRenderTargetUpdate}}
\index{postRenderTargetUpdate@{postRenderTargetUpdate}!Ogre::RenderTargetListener@{Ogre::RenderTargetListener}}
\doxysubsubsection{\texorpdfstring{postRenderTargetUpdate()}{postRenderTargetUpdate()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Render\+Target\+Listener\+::post\+Render\+Target\+Update (\begin{DoxyParamCaption}\item[{const \mbox{\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 \mbox{\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 \mbox{\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::RenderTargetListener@{Ogre::RenderTargetListener}!preViewportUpdate@{preViewportUpdate}}
\index{preViewportUpdate@{preViewportUpdate}!Ogre::RenderTargetListener@{Ogre::RenderTargetListener}}
\doxysubsubsection{\texorpdfstring{preViewportUpdate()}{preViewportUpdate()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Render\+Target\+Listener\+::pre\+Viewport\+Update (\begin{DoxyParamCaption}\item[{const \mbox{\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 \mbox{\hyperlink{class_ogre_1_1_viewport}{Viewport}} on a \mbox{\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 \mbox{\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 \mbox{\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::RenderTargetListener@{Ogre::RenderTargetListener}!postViewportUpdate@{postViewportUpdate}}
\index{postViewportUpdate@{postViewportUpdate}!Ogre::RenderTargetListener@{Ogre::RenderTargetListener}}
\doxysubsubsection{\texorpdfstring{postViewportUpdate()}{postViewportUpdate()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Render\+Target\+Listener\+::post\+Viewport\+Update (\begin{DoxyParamCaption}\item[{const \mbox{\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 \mbox{\hyperlink{class_ogre_1_1_viewport}{Viewport}} on a \mbox{\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 \mbox{\hyperlink{class_ogre_1_1_render_target}{Render\+Target}} is rendered to. 
\end{DoxyRemark}


Reimplemented in \mbox{\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::RenderTargetListener@{Ogre::RenderTargetListener}!viewportAdded@{viewportAdded}}
\index{viewportAdded@{viewportAdded}!Ogre::RenderTargetListener@{Ogre::RenderTargetListener}}
\doxysubsubsection{\texorpdfstring{viewportAdded()}{viewportAdded()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Render\+Target\+Listener\+::viewport\+Added (\begin{DoxyParamCaption}\item[{const \mbox{\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 \mbox{\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::RenderTargetListener@{Ogre::RenderTargetListener}!viewportRemoved@{viewportRemoved}}
\index{viewportRemoved@{viewportRemoved}!Ogre::RenderTargetListener@{Ogre::RenderTargetListener}}
\doxysubsubsection{\texorpdfstring{viewportRemoved()}{viewportRemoved()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Render\+Target\+Listener\+::viewport\+Removed (\begin{DoxyParamCaption}\item[{const \mbox{\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 \mbox{\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 
\mbox{\hyperlink{_ogre_render_target_listener_8h}{Ogre\+Render\+Target\+Listener.\+h}}\end{DoxyCompactItemize}
