\hypertarget{class_ogre_1_1_gpu_program_usage}{}\section{Ogre\+:\+:Gpu\+Program\+Usage Class Reference}
\label{class_ogre_1_1_gpu_program_usage}\index{Ogre\+::\+Gpu\+Program\+Usage@{Ogre\+::\+Gpu\+Program\+Usage}}


This class makes the usage of a vertex and fragment programs (low-\/level or high-\/level), with a given set of parameters, explicit.  




{\ttfamily \#include $<$Ogre\+Gpu\+Program\+Usage.\+h$>$}



Inheritance diagram for Ogre\+:\+:Gpu\+Program\+Usage\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=296pt]{class_ogre_1_1_gpu_program_usage__inherit__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_ogre_1_1_gpu_program_usage_a75e48f93f8076f90ea0cfbe63052683d}{Gpu\+Program\+Usage} (\hyperlink{group___resources_gad08e89fa63e81d061ea9e2f37664976e}{Gpu\+Program\+Type} gptype, \hyperlink{class_ogre_1_1_pass}{Pass} $\ast$parent)
\begin{DoxyCompactList}\small\item\em Default constructor. \end{DoxyCompactList}\item 
\hyperlink{class_ogre_1_1_gpu_program_usage_aad3a4915c2cddc6042ebe8f9c38f9700}{Gpu\+Program\+Usage} (const \hyperlink{class_ogre_1_1_gpu_program_usage}{Gpu\+Program\+Usage} \&rhs, \hyperlink{class_ogre_1_1_pass}{Pass} $\ast$newparent)
\begin{DoxyCompactList}\small\item\em Copy constructor. \end{DoxyCompactList}\item 
\hyperlink{class_ogre_1_1_gpu_program_usage_a9a5ce7fed0a695aa6b8c54ab4dbe24d7}{$\sim$\+Gpu\+Program\+Usage} ()
\item 
void \hyperlink{class_ogre_1_1_gpu_program_usage_a998ff466eb484f98eea125257cc43db9}{\+\_\+load} (void)
\begin{DoxyCompactList}\small\item\em Load this usage (and ensure program is loaded) \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_gpu_program_usage_ae8445ca73de5edc403bcb310f96a7f84}{\+\_\+unload} (void)
\begin{DoxyCompactList}\small\item\em Unload this usage. \end{DoxyCompactList}\item 
size\+\_\+t \hyperlink{class_ogre_1_1_gpu_program_usage_a95b1b2bf70c557e1a82bc94bb75a8668}{calculate\+Size} (void) const
\item 
const \hyperlink{namespace_ogre_aebab7cecf3f3ae81a1fbfa08ab36f2b5}{Gpu\+Program\+Parameters\+Shared\+Ptr} \& \hyperlink{class_ogre_1_1_gpu_program_usage_aedad0f5a236be7a244d02b6f85094b80}{get\+Parameters} (void) const
\begin{DoxyCompactList}\small\item\em Gets the parameters being used here. \end{DoxyCompactList}\item 
const \hyperlink{namespace_ogre_a2c452533979dfdf73a296288e94d920b}{Gpu\+Program\+Ptr} \& \hyperlink{class_ogre_1_1_gpu_program_usage_a294ab57dba10f2c90a64457d9c279789}{get\+Program} () const
\begin{DoxyCompactList}\small\item\em Gets the program being used. \end{DoxyCompactList}\item 
const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \& \hyperlink{class_ogre_1_1_gpu_program_usage_ac6c2e24d385ec1634374d1be19837884}{get\+Program\+Name} (void) const
\begin{DoxyCompactList}\small\item\em Gets the program being used. \end{DoxyCompactList}\item 
\hyperlink{group___resources_gad08e89fa63e81d061ea9e2f37664976e}{Gpu\+Program\+Type} \hyperlink{class_ogre_1_1_gpu_program_usage_aba1c6e59424acd4398a9a0f62832bbdb}{get\+Type} (void) const
\begin{DoxyCompactList}\small\item\em Gets the type of program we\textquotesingle{}re trying to link to. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_gpu_program_usage_af7656f20d47cd7df24b98bc4b44bf8ef}{loading\+Complete} (\hyperlink{class_ogre_1_1_resource}{Resource} $\ast$prog)
\begin{DoxyCompactList}\small\item\em Called whenever the resource finishes loading. \end{DoxyCompactList}\item 
virtual void \hyperlink{class_ogre_1_1_resource_1_1_listener_a7951abdcff85efd6cf58a49d94442f67}{preparing\+Complete} (\hyperlink{class_ogre_1_1_resource}{Resource} $\ast$)
\begin{DoxyCompactList}\small\item\em Called whenever the resource finishes preparing (paging into memory). \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_gpu_program_usage_a98c27808da7f9975c442c0ab3e6cc493}{set\+Parameters} (const \hyperlink{namespace_ogre_aebab7cecf3f3ae81a1fbfa08ab36f2b5}{Gpu\+Program\+Parameters\+Shared\+Ptr} \&params)
\begin{DoxyCompactList}\small\item\em Sets the program parameters that should be used; because parameters can be shared between multiple usages for efficiency, this method is here for you to register externally created parameter objects. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_gpu_program_usage_a3e3ebb8c76aba4d1fc5906316ca7bf69}{set\+Program} (const \hyperlink{namespace_ogre_a2c452533979dfdf73a296288e94d920b}{Gpu\+Program\+Ptr} \&prog, bool reset\+Params=true)
\begin{DoxyCompactList}\small\item\em Sets the program to use. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_gpu_program_usage_a512e5a33561e116ad63042ec383bc911}{set\+Program\+Name} (const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&name, bool reset\+Params=true)
\begin{DoxyCompactList}\small\item\em Sets the name of the program to use. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_gpu_program_usage_a22bb67a36e44cc6202dd87bc802a0736}{unloading\+Complete} (\hyperlink{class_ogre_1_1_resource}{Resource} $\ast$prog)
\begin{DoxyCompactList}\small\item\em Called whenever the resource has been unloaded. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static \hyperlink{namespace_ogre_a2c452533979dfdf73a296288e94d920b}{Gpu\+Program\+Ptr} \hyperlink{class_ogre_1_1_gpu_program_usage_a7a8f941ecdad6431add0a2b2abd86683}{\+\_\+get\+Program\+By\+Name} (const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&name, const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&group, \hyperlink{group___resources_gad08e89fa63e81d061ea9e2f37664976e}{Gpu\+Program\+Type} type)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
This class makes the usage of a vertex and fragment programs (low-\/level or high-\/level), with a given set of parameters, explicit. 

\begin{DoxyRemark}{Remarks}
Using a vertex or fragment program can get fairly complex; besides the fairly rudimentary process of binding a program to the G\+PU for rendering, managing usage has few complications, such as\+: 
\begin{DoxyItemize}
\item Programs can be high level (e.\+g. Cg, Render\+Monkey) or low level (assembler). Using either should be relatively seamless, although high-\/level programs give you the advantage of being able to use named parameters, instead of just indexed registers 
\item Programs and parameters can be shared between multiple usages, in order to save memory 
\item When you define a user of a program, such as a material, you often want to be able to set up the definition but not load / compile / assemble the program at that stage, because it is not needed just yet. The program should be loaded when it is first needed, or earlier if specifically requested. The program may not be defined at this time, you may want to have scripts that can set up the definitions independent of the order in which those scripts are loaded. 
\end{DoxyItemize}This class packages up those details so you don\textquotesingle{}t have to worry about them. For example, this class lets you define a high-\/level program and set up the parameters for it, without having loaded the program (which you normally could not do). When the program is loaded and compiled, this class will then validate the parameters you supplied earlier and turn them into runtime parameters. 
\end{DoxyRemark}
\begin{DoxyParagraph}{}
Just incase it wasn\textquotesingle{}t clear from the above, this class provides linkage to both \hyperlink{class_ogre_1_1_gpu_program}{Gpu\+Program} and \hyperlink{class_ogre_1_1_high_level_gpu_program}{High\+Level\+Gpu\+Program}, despite its name. 
\end{DoxyParagraph}


\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_gpu_program_usage_a75e48f93f8076f90ea0cfbe63052683d}\label{class_ogre_1_1_gpu_program_usage_a75e48f93f8076f90ea0cfbe63052683d}} 
\index{Ogre\+::\+Gpu\+Program\+Usage@{Ogre\+::\+Gpu\+Program\+Usage}!Gpu\+Program\+Usage@{Gpu\+Program\+Usage}}
\index{Gpu\+Program\+Usage@{Gpu\+Program\+Usage}!Ogre\+::\+Gpu\+Program\+Usage@{Ogre\+::\+Gpu\+Program\+Usage}}
\subsubsection{\texorpdfstring{Gpu\+Program\+Usage()}{GpuProgramUsage()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily Ogre\+::\+Gpu\+Program\+Usage\+::\+Gpu\+Program\+Usage (\begin{DoxyParamCaption}\item[{\hyperlink{group___resources_gad08e89fa63e81d061ea9e2f37664976e}{Gpu\+Program\+Type}}]{gptype,  }\item[{\hyperlink{class_ogre_1_1_pass}{Pass} $\ast$}]{parent }\end{DoxyParamCaption})}



Default constructor. 


\begin{DoxyParams}{Parameters}
{\em gptype} & The type of program to link to \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_gpu_program_usage_aad3a4915c2cddc6042ebe8f9c38f9700}\label{class_ogre_1_1_gpu_program_usage_aad3a4915c2cddc6042ebe8f9c38f9700}} 
\index{Ogre\+::\+Gpu\+Program\+Usage@{Ogre\+::\+Gpu\+Program\+Usage}!Gpu\+Program\+Usage@{Gpu\+Program\+Usage}}
\index{Gpu\+Program\+Usage@{Gpu\+Program\+Usage}!Ogre\+::\+Gpu\+Program\+Usage@{Ogre\+::\+Gpu\+Program\+Usage}}
\subsubsection{\texorpdfstring{Gpu\+Program\+Usage()}{GpuProgramUsage()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily Ogre\+::\+Gpu\+Program\+Usage\+::\+Gpu\+Program\+Usage (\begin{DoxyParamCaption}\item[{const \hyperlink{class_ogre_1_1_gpu_program_usage}{Gpu\+Program\+Usage} \&}]{rhs,  }\item[{\hyperlink{class_ogre_1_1_pass}{Pass} $\ast$}]{newparent }\end{DoxyParamCaption})}



Copy constructor. 

\mbox{\Hypertarget{class_ogre_1_1_gpu_program_usage_a9a5ce7fed0a695aa6b8c54ab4dbe24d7}\label{class_ogre_1_1_gpu_program_usage_a9a5ce7fed0a695aa6b8c54ab4dbe24d7}} 
\index{Ogre\+::\+Gpu\+Program\+Usage@{Ogre\+::\+Gpu\+Program\+Usage}!````~Gpu\+Program\+Usage@{$\sim$\+Gpu\+Program\+Usage}}
\index{````~Gpu\+Program\+Usage@{$\sim$\+Gpu\+Program\+Usage}!Ogre\+::\+Gpu\+Program\+Usage@{Ogre\+::\+Gpu\+Program\+Usage}}
\subsubsection{\texorpdfstring{$\sim$\+Gpu\+Program\+Usage()}{~GpuProgramUsage()}}
{\footnotesize\ttfamily Ogre\+::\+Gpu\+Program\+Usage\+::$\sim$\+Gpu\+Program\+Usage (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_gpu_program_usage_aba1c6e59424acd4398a9a0f62832bbdb}\label{class_ogre_1_1_gpu_program_usage_aba1c6e59424acd4398a9a0f62832bbdb}} 
\index{Ogre\+::\+Gpu\+Program\+Usage@{Ogre\+::\+Gpu\+Program\+Usage}!get\+Type@{get\+Type}}
\index{get\+Type@{get\+Type}!Ogre\+::\+Gpu\+Program\+Usage@{Ogre\+::\+Gpu\+Program\+Usage}}
\subsubsection{\texorpdfstring{get\+Type()}{getType()}}
{\footnotesize\ttfamily \hyperlink{group___resources_gad08e89fa63e81d061ea9e2f37664976e}{Gpu\+Program\+Type} Ogre\+::\+Gpu\+Program\+Usage\+::get\+Type (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Gets the type of program we\textquotesingle{}re trying to link to. 

\mbox{\Hypertarget{class_ogre_1_1_gpu_program_usage_a512e5a33561e116ad63042ec383bc911}\label{class_ogre_1_1_gpu_program_usage_a512e5a33561e116ad63042ec383bc911}} 
\index{Ogre\+::\+Gpu\+Program\+Usage@{Ogre\+::\+Gpu\+Program\+Usage}!set\+Program\+Name@{set\+Program\+Name}}
\index{set\+Program\+Name@{set\+Program\+Name}!Ogre\+::\+Gpu\+Program\+Usage@{Ogre\+::\+Gpu\+Program\+Usage}}
\subsubsection{\texorpdfstring{set\+Program\+Name()}{setProgramName()}}
{\footnotesize\ttfamily void Ogre\+::\+Gpu\+Program\+Usage\+::set\+Program\+Name (\begin{DoxyParamCaption}\item[{const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&}]{name,  }\item[{bool}]{reset\+Params = {\ttfamily true} }\end{DoxyParamCaption})}



Sets the name of the program to use. 


\begin{DoxyParams}{Parameters}
{\em name} & The name of the program to use \\
\hline
{\em reset\+Params} & If true, this will create a fresh set of parameters from the new program being linked, so if you had previously set parameters you will have to set them again. If you set this to false, you must be absolutely sure that the parameters match perfectly, and in the case of named parameters refers to the indexes underlying them, not just the names. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_gpu_program_usage_a3e3ebb8c76aba4d1fc5906316ca7bf69}\label{class_ogre_1_1_gpu_program_usage_a3e3ebb8c76aba4d1fc5906316ca7bf69}} 
\index{Ogre\+::\+Gpu\+Program\+Usage@{Ogre\+::\+Gpu\+Program\+Usage}!set\+Program@{set\+Program}}
\index{set\+Program@{set\+Program}!Ogre\+::\+Gpu\+Program\+Usage@{Ogre\+::\+Gpu\+Program\+Usage}}
\subsubsection{\texorpdfstring{set\+Program()}{setProgram()}}
{\footnotesize\ttfamily void Ogre\+::\+Gpu\+Program\+Usage\+::set\+Program (\begin{DoxyParamCaption}\item[{const \hyperlink{namespace_ogre_a2c452533979dfdf73a296288e94d920b}{Gpu\+Program\+Ptr} \&}]{prog,  }\item[{bool}]{reset\+Params = {\ttfamily true} }\end{DoxyParamCaption})}



Sets the program to use. 

\begin{DoxyRemark}{Remarks}
Note that this will create a fresh set of parameters from the new program being linked, so if you had previously set parameters you will have to set them again. 
\end{DoxyRemark}
\mbox{\Hypertarget{class_ogre_1_1_gpu_program_usage_a294ab57dba10f2c90a64457d9c279789}\label{class_ogre_1_1_gpu_program_usage_a294ab57dba10f2c90a64457d9c279789}} 
\index{Ogre\+::\+Gpu\+Program\+Usage@{Ogre\+::\+Gpu\+Program\+Usage}!get\+Program@{get\+Program}}
\index{get\+Program@{get\+Program}!Ogre\+::\+Gpu\+Program\+Usage@{Ogre\+::\+Gpu\+Program\+Usage}}
\subsubsection{\texorpdfstring{get\+Program()}{getProgram()}}
{\footnotesize\ttfamily const \hyperlink{namespace_ogre_a2c452533979dfdf73a296288e94d920b}{Gpu\+Program\+Ptr}\& Ogre\+::\+Gpu\+Program\+Usage\+::get\+Program (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Gets the program being used. 

\mbox{\Hypertarget{class_ogre_1_1_gpu_program_usage_ac6c2e24d385ec1634374d1be19837884}\label{class_ogre_1_1_gpu_program_usage_ac6c2e24d385ec1634374d1be19837884}} 
\index{Ogre\+::\+Gpu\+Program\+Usage@{Ogre\+::\+Gpu\+Program\+Usage}!get\+Program\+Name@{get\+Program\+Name}}
\index{get\+Program\+Name@{get\+Program\+Name}!Ogre\+::\+Gpu\+Program\+Usage@{Ogre\+::\+Gpu\+Program\+Usage}}
\subsubsection{\texorpdfstring{get\+Program\+Name()}{getProgramName()}}
{\footnotesize\ttfamily const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}\& Ogre\+::\+Gpu\+Program\+Usage\+::get\+Program\+Name (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Gets the program being used. 



References Ogre\+::\+Resource\+::get\+Name().

\mbox{\Hypertarget{class_ogre_1_1_gpu_program_usage_a98c27808da7f9975c442c0ab3e6cc493}\label{class_ogre_1_1_gpu_program_usage_a98c27808da7f9975c442c0ab3e6cc493}} 
\index{Ogre\+::\+Gpu\+Program\+Usage@{Ogre\+::\+Gpu\+Program\+Usage}!set\+Parameters@{set\+Parameters}}
\index{set\+Parameters@{set\+Parameters}!Ogre\+::\+Gpu\+Program\+Usage@{Ogre\+::\+Gpu\+Program\+Usage}}
\subsubsection{\texorpdfstring{set\+Parameters()}{setParameters()}}
{\footnotesize\ttfamily void Ogre\+::\+Gpu\+Program\+Usage\+::set\+Parameters (\begin{DoxyParamCaption}\item[{const \hyperlink{namespace_ogre_aebab7cecf3f3ae81a1fbfa08ab36f2b5}{Gpu\+Program\+Parameters\+Shared\+Ptr} \&}]{params }\end{DoxyParamCaption})}



Sets the program parameters that should be used; because parameters can be shared between multiple usages for efficiency, this method is here for you to register externally created parameter objects. 

Otherwise, the parameters will be created for you when a program is linked. \mbox{\Hypertarget{class_ogre_1_1_gpu_program_usage_aedad0f5a236be7a244d02b6f85094b80}\label{class_ogre_1_1_gpu_program_usage_aedad0f5a236be7a244d02b6f85094b80}} 
\index{Ogre\+::\+Gpu\+Program\+Usage@{Ogre\+::\+Gpu\+Program\+Usage}!get\+Parameters@{get\+Parameters}}
\index{get\+Parameters@{get\+Parameters}!Ogre\+::\+Gpu\+Program\+Usage@{Ogre\+::\+Gpu\+Program\+Usage}}
\subsubsection{\texorpdfstring{get\+Parameters()}{getParameters()}}
{\footnotesize\ttfamily const \hyperlink{namespace_ogre_aebab7cecf3f3ae81a1fbfa08ab36f2b5}{Gpu\+Program\+Parameters\+Shared\+Ptr}\& Ogre\+::\+Gpu\+Program\+Usage\+::get\+Parameters (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const}



Gets the parameters being used here. 

\mbox{\Hypertarget{class_ogre_1_1_gpu_program_usage_a998ff466eb484f98eea125257cc43db9}\label{class_ogre_1_1_gpu_program_usage_a998ff466eb484f98eea125257cc43db9}} 
\index{Ogre\+::\+Gpu\+Program\+Usage@{Ogre\+::\+Gpu\+Program\+Usage}!\+\_\+load@{\+\_\+load}}
\index{\+\_\+load@{\+\_\+load}!Ogre\+::\+Gpu\+Program\+Usage@{Ogre\+::\+Gpu\+Program\+Usage}}
\subsubsection{\texorpdfstring{\+\_\+load()}{\_load()}}
{\footnotesize\ttfamily void Ogre\+::\+Gpu\+Program\+Usage\+::\+\_\+load (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Load this usage (and ensure program is loaded) 

\mbox{\Hypertarget{class_ogre_1_1_gpu_program_usage_ae8445ca73de5edc403bcb310f96a7f84}\label{class_ogre_1_1_gpu_program_usage_ae8445ca73de5edc403bcb310f96a7f84}} 
\index{Ogre\+::\+Gpu\+Program\+Usage@{Ogre\+::\+Gpu\+Program\+Usage}!\+\_\+unload@{\+\_\+unload}}
\index{\+\_\+unload@{\+\_\+unload}!Ogre\+::\+Gpu\+Program\+Usage@{Ogre\+::\+Gpu\+Program\+Usage}}
\subsubsection{\texorpdfstring{\+\_\+unload()}{\_unload()}}
{\footnotesize\ttfamily void Ogre\+::\+Gpu\+Program\+Usage\+::\+\_\+unload (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Unload this usage. 

\mbox{\Hypertarget{class_ogre_1_1_gpu_program_usage_a95b1b2bf70c557e1a82bc94bb75a8668}\label{class_ogre_1_1_gpu_program_usage_a95b1b2bf70c557e1a82bc94bb75a8668}} 
\index{Ogre\+::\+Gpu\+Program\+Usage@{Ogre\+::\+Gpu\+Program\+Usage}!calculate\+Size@{calculate\+Size}}
\index{calculate\+Size@{calculate\+Size}!Ogre\+::\+Gpu\+Program\+Usage@{Ogre\+::\+Gpu\+Program\+Usage}}
\subsubsection{\texorpdfstring{calculate\+Size()}{calculateSize()}}
{\footnotesize\ttfamily size\+\_\+t Ogre\+::\+Gpu\+Program\+Usage\+::calculate\+Size (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const}

\mbox{\Hypertarget{class_ogre_1_1_gpu_program_usage_a22bb67a36e44cc6202dd87bc802a0736}\label{class_ogre_1_1_gpu_program_usage_a22bb67a36e44cc6202dd87bc802a0736}} 
\index{Ogre\+::\+Gpu\+Program\+Usage@{Ogre\+::\+Gpu\+Program\+Usage}!unloading\+Complete@{unloading\+Complete}}
\index{unloading\+Complete@{unloading\+Complete}!Ogre\+::\+Gpu\+Program\+Usage@{Ogre\+::\+Gpu\+Program\+Usage}}
\subsubsection{\texorpdfstring{unloading\+Complete()}{unloadingComplete()}}
{\footnotesize\ttfamily void Ogre\+::\+Gpu\+Program\+Usage\+::unloading\+Complete (\begin{DoxyParamCaption}\item[{\hyperlink{class_ogre_1_1_resource}{Resource} $\ast$}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Called whenever the resource has been unloaded. 



Reimplemented from \hyperlink{class_ogre_1_1_resource_1_1_listener_a9f8cdeb73a65a6a1c018e5ac783dfafe}{Ogre\+::\+Resource\+::\+Listener}.

\mbox{\Hypertarget{class_ogre_1_1_gpu_program_usage_af7656f20d47cd7df24b98bc4b44bf8ef}\label{class_ogre_1_1_gpu_program_usage_af7656f20d47cd7df24b98bc4b44bf8ef}} 
\index{Ogre\+::\+Gpu\+Program\+Usage@{Ogre\+::\+Gpu\+Program\+Usage}!loading\+Complete@{loading\+Complete}}
\index{loading\+Complete@{loading\+Complete}!Ogre\+::\+Gpu\+Program\+Usage@{Ogre\+::\+Gpu\+Program\+Usage}}
\subsubsection{\texorpdfstring{loading\+Complete()}{loadingComplete()}}
{\footnotesize\ttfamily void Ogre\+::\+Gpu\+Program\+Usage\+::loading\+Complete (\begin{DoxyParamCaption}\item[{\hyperlink{class_ogre_1_1_resource}{Resource} $\ast$}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Called whenever the resource finishes loading. 

\begin{DoxyRemark}{Remarks}
If a \hyperlink{class_ogre_1_1_resource}{Resource} has been marked as background loaded (
\end{DoxyRemark}
\begin{DoxySeeAlso}{See also}
\hyperlink{class_ogre_1_1_resource_ae0a0007de944eb3c2f933a372a752b35}{Resource\+::set\+Background\+Loaded}), the call does not itself occur in the thread which is doing the loading; when loading is complete a response indicator is placed with the \hyperlink{class_ogre_1_1_resource_group_manager}{Resource\+Group\+Manager}, which will then be sent back to the listener as part of the application\textquotesingle{}s primary frame loop thread. 
\end{DoxySeeAlso}


Reimplemented from \hyperlink{class_ogre_1_1_resource_1_1_listener_ac8d962ac52ef53a2ad6ddbdc5b6c9655}{Ogre\+::\+Resource\+::\+Listener}.

\mbox{\Hypertarget{class_ogre_1_1_gpu_program_usage_a7a8f941ecdad6431add0a2b2abd86683}\label{class_ogre_1_1_gpu_program_usage_a7a8f941ecdad6431add0a2b2abd86683}} 
\index{Ogre\+::\+Gpu\+Program\+Usage@{Ogre\+::\+Gpu\+Program\+Usage}!\+\_\+get\+Program\+By\+Name@{\+\_\+get\+Program\+By\+Name}}
\index{\+\_\+get\+Program\+By\+Name@{\+\_\+get\+Program\+By\+Name}!Ogre\+::\+Gpu\+Program\+Usage@{Ogre\+::\+Gpu\+Program\+Usage}}
\subsubsection{\texorpdfstring{\+\_\+get\+Program\+By\+Name()}{\_getProgramByName()}}
{\footnotesize\ttfamily static \hyperlink{namespace_ogre_a2c452533979dfdf73a296288e94d920b}{Gpu\+Program\+Ptr} Ogre\+::\+Gpu\+Program\+Usage\+::\+\_\+get\+Program\+By\+Name (\begin{DoxyParamCaption}\item[{const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&}]{name,  }\item[{const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&}]{group,  }\item[{\hyperlink{group___resources_gad08e89fa63e81d061ea9e2f37664976e}{Gpu\+Program\+Type}}]{type }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}

\mbox{\Hypertarget{class_ogre_1_1_resource_1_1_listener_a7951abdcff85efd6cf58a49d94442f67}\label{class_ogre_1_1_resource_1_1_listener_a7951abdcff85efd6cf58a49d94442f67}} 
\index{Ogre\+::\+Gpu\+Program\+Usage@{Ogre\+::\+Gpu\+Program\+Usage}!preparing\+Complete@{preparing\+Complete}}
\index{preparing\+Complete@{preparing\+Complete}!Ogre\+::\+Gpu\+Program\+Usage@{Ogre\+::\+Gpu\+Program\+Usage}}
\subsubsection{\texorpdfstring{preparing\+Complete()}{preparingComplete()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Resource\+::\+Listener\+::preparing\+Complete (\begin{DoxyParamCaption}\item[{\hyperlink{class_ogre_1_1_resource}{Resource} $\ast$}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}, {\ttfamily [inherited]}}



Called whenever the resource finishes preparing (paging into memory). 

\begin{DoxyRemark}{Remarks}
If a \hyperlink{class_ogre_1_1_resource}{Resource} has been marked as background loaded (
\end{DoxyRemark}
\begin{DoxySeeAlso}{See also}
\hyperlink{class_ogre_1_1_resource_ae0a0007de944eb3c2f933a372a752b35}{Resource\+::set\+Background\+Loaded}) the call does not itself occur in the thread which is doing the preparing; when preparing is complete a response indicator is placed with the \hyperlink{class_ogre_1_1_resource_group_manager}{Resource\+Group\+Manager}, which will then be sent back to the listener as part of the application\textquotesingle{}s primary frame loop thread. 
\end{DoxySeeAlso}


The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
\hyperlink{_ogre_gpu_program_usage_8h}{Ogre\+Gpu\+Program\+Usage.\+h}\end{DoxyCompactItemize}
