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


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}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_ogre_1_1_gpu_program_usage_aad3a4915c2cddc6042ebe8f9c38f9700}{Gpu\+Program\+Usage}} (const \mbox{\hyperlink{class_ogre_1_1_gpu_program_usage}{Gpu\+Program\+Usage}} \&rhs, \mbox{\hyperlink{class_ogre_1_1_pass}{Pass}} $\ast$newparent)
\begin{DoxyCompactList}\small\item\em Copy constructor. \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_ogre_1_1_gpu_program_usage_a75e48f93f8076f90ea0cfbe63052683d}{Gpu\+Program\+Usage}} (\mbox{\hyperlink{group___resources_gad08e89fa63e81d061ea9e2f37664976e}{Gpu\+Program\+Type}} gptype, \mbox{\hyperlink{class_ogre_1_1_pass}{Pass}} $\ast$parent)
\begin{DoxyCompactList}\small\item\em Default constructor. \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_ogre_1_1_gpu_program_usage_a9a5ce7fed0a695aa6b8c54ab4dbe24d7}{$\sim$\+Gpu\+Program\+Usage}} ()
\item 
void \mbox{\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 \mbox{\hyperlink{class_ogre_1_1_gpu_program_usage_ae8445ca73de5edc403bcb310f96a7f84}{\+\_\+unload}} (void)
\begin{DoxyCompactList}\small\item\em Unload this usage. \end{DoxyCompactList}\item 
size\+\_\+t \mbox{\hyperlink{class_ogre_1_1_gpu_program_usage_a95b1b2bf70c557e1a82bc94bb75a8668}{calculate\+Size}} (void) const
\item 
const \mbox{\hyperlink{namespace_ogre_aff0eec6634048fd4d65b785264243e6c}{Gpu\+Program\+Parameters\+Shared\+Ptr}} \& \mbox{\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 \mbox{\hyperlink{namespace_ogre_a2c452533979dfdf73a296288e94d920b}{Gpu\+Program\+Ptr}} \& \mbox{\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 \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \& \mbox{\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 
\mbox{\hyperlink{group___resources_gad08e89fa63e81d061ea9e2f37664976e}{Gpu\+Program\+Type}} \mbox{\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 \mbox{\hyperlink{class_ogre_1_1_gpu_program_usage_af7656f20d47cd7df24b98bc4b44bf8ef}{loading\+Complete}} (\mbox{\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 \mbox{\hyperlink{class_ogre_1_1_resource_1_1_listener_a7951abdcff85efd6cf58a49d94442f67}{preparing\+Complete}} (\mbox{\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 \mbox{\hyperlink{class_ogre_1_1_gpu_program_usage_a98c27808da7f9975c442c0ab3e6cc493}{set\+Parameters}} (const \mbox{\hyperlink{namespace_ogre_aff0eec6634048fd4d65b785264243e6c}{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 \mbox{\hyperlink{class_ogre_1_1_gpu_program_usage_a3e3ebb8c76aba4d1fc5906316ca7bf69}{set\+Program}} (const \mbox{\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 \mbox{\hyperlink{class_ogre_1_1_gpu_program_usage_a512e5a33561e116ad63042ec383bc911}{set\+Program\+Name}} (const \mbox{\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 \mbox{\hyperlink{class_ogre_1_1_gpu_program_usage_a22bb67a36e44cc6202dd87bc802a0736}{unloading\+Complete}} (\mbox{\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}
\doxysubsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static \mbox{\hyperlink{namespace_ogre_a2c452533979dfdf73a296288e94d920b}{Gpu\+Program\+Ptr}} \mbox{\hyperlink{class_ogre_1_1_gpu_program_usage_a7a8f941ecdad6431add0a2b2abd86683}{\+\_\+get\+Program\+By\+Name}} (const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&name, const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&group, \mbox{\hyperlink{group___resources_gad08e89fa63e81d061ea9e2f37664976e}{Gpu\+Program\+Type}} type)
\end{DoxyCompactItemize}


\doxysubsection{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 \mbox{\hyperlink{class_ogre_1_1_gpu_program}{Gpu\+Program}} and \mbox{\hyperlink{class_ogre_1_1_high_level_gpu_program}{High\+Level\+Gpu\+Program}}, despite its name. 
\end{DoxyParagraph}


\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_gpu_program_usage_a75e48f93f8076f90ea0cfbe63052683d}\label{class_ogre_1_1_gpu_program_usage_a75e48f93f8076f90ea0cfbe63052683d}} 
\index{Ogre::GpuProgramUsage@{Ogre::GpuProgramUsage}!GpuProgramUsage@{GpuProgramUsage}}
\index{GpuProgramUsage@{GpuProgramUsage}!Ogre::GpuProgramUsage@{Ogre::GpuProgramUsage}}
\doxysubsubsection{\texorpdfstring{GpuProgramUsage()}{GpuProgramUsage()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily Ogre\+::\+Gpu\+Program\+Usage\+::\+Gpu\+Program\+Usage (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group___resources_gad08e89fa63e81d061ea9e2f37664976e}{Gpu\+Program\+Type}}}]{gptype,  }\item[{\mbox{\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::GpuProgramUsage@{Ogre::GpuProgramUsage}!GpuProgramUsage@{GpuProgramUsage}}
\index{GpuProgramUsage@{GpuProgramUsage}!Ogre::GpuProgramUsage@{Ogre::GpuProgramUsage}}
\doxysubsubsection{\texorpdfstring{GpuProgramUsage()}{GpuProgramUsage()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily Ogre\+::\+Gpu\+Program\+Usage\+::\+Gpu\+Program\+Usage (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{class_ogre_1_1_gpu_program_usage}{Gpu\+Program\+Usage}} \&}]{rhs,  }\item[{\mbox{\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::GpuProgramUsage@{Ogre::GpuProgramUsage}!````~GpuProgramUsage@{$\sim$GpuProgramUsage}}
\index{````~GpuProgramUsage@{$\sim$GpuProgramUsage}!Ogre::GpuProgramUsage@{Ogre::GpuProgramUsage}}
\doxysubsubsection{\texorpdfstring{$\sim$GpuProgramUsage()}{~GpuProgramUsage()}}
{\footnotesize\ttfamily Ogre\+::\+Gpu\+Program\+Usage\+::$\sim$\+Gpu\+Program\+Usage (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_gpu_program_usage_aba1c6e59424acd4398a9a0f62832bbdb}\label{class_ogre_1_1_gpu_program_usage_aba1c6e59424acd4398a9a0f62832bbdb}} 
\index{Ogre::GpuProgramUsage@{Ogre::GpuProgramUsage}!getType@{getType}}
\index{getType@{getType}!Ogre::GpuProgramUsage@{Ogre::GpuProgramUsage}}
\doxysubsubsection{\texorpdfstring{getType()}{getType()}}
{\footnotesize\ttfamily \mbox{\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::GpuProgramUsage@{Ogre::GpuProgramUsage}!setProgramName@{setProgramName}}
\index{setProgramName@{setProgramName}!Ogre::GpuProgramUsage@{Ogre::GpuProgramUsage}}
\doxysubsubsection{\texorpdfstring{setProgramName()}{setProgramName()}}
{\footnotesize\ttfamily void Ogre\+::\+Gpu\+Program\+Usage\+::set\+Program\+Name (\begin{DoxyParamCaption}\item[{const \mbox{\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::GpuProgramUsage@{Ogre::GpuProgramUsage}!setProgram@{setProgram}}
\index{setProgram@{setProgram}!Ogre::GpuProgramUsage@{Ogre::GpuProgramUsage}}
\doxysubsubsection{\texorpdfstring{setProgram()}{setProgram()}}
{\footnotesize\ttfamily void Ogre\+::\+Gpu\+Program\+Usage\+::set\+Program (\begin{DoxyParamCaption}\item[{const \mbox{\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::GpuProgramUsage@{Ogre::GpuProgramUsage}!getProgram@{getProgram}}
\index{getProgram@{getProgram}!Ogre::GpuProgramUsage@{Ogre::GpuProgramUsage}}
\doxysubsubsection{\texorpdfstring{getProgram()}{getProgram()}}
{\footnotesize\ttfamily const \mbox{\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::GpuProgramUsage@{Ogre::GpuProgramUsage}!getProgramName@{getProgramName}}
\index{getProgramName@{getProgramName}!Ogre::GpuProgramUsage@{Ogre::GpuProgramUsage}}
\doxysubsubsection{\texorpdfstring{getProgramName()}{getProgramName()}}
{\footnotesize\ttfamily const \mbox{\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::GpuProgramUsage@{Ogre::GpuProgramUsage}!setParameters@{setParameters}}
\index{setParameters@{setParameters}!Ogre::GpuProgramUsage@{Ogre::GpuProgramUsage}}
\doxysubsubsection{\texorpdfstring{setParameters()}{setParameters()}}
{\footnotesize\ttfamily void Ogre\+::\+Gpu\+Program\+Usage\+::set\+Parameters (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{namespace_ogre_aff0eec6634048fd4d65b785264243e6c}{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::GpuProgramUsage@{Ogre::GpuProgramUsage}!getParameters@{getParameters}}
\index{getParameters@{getParameters}!Ogre::GpuProgramUsage@{Ogre::GpuProgramUsage}}
\doxysubsubsection{\texorpdfstring{getParameters()}{getParameters()}}
{\footnotesize\ttfamily const \mbox{\hyperlink{namespace_ogre_aff0eec6634048fd4d65b785264243e6c}{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::GpuProgramUsage@{Ogre::GpuProgramUsage}!\_load@{\_load}}
\index{\_load@{\_load}!Ogre::GpuProgramUsage@{Ogre::GpuProgramUsage}}
\doxysubsubsection{\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::GpuProgramUsage@{Ogre::GpuProgramUsage}!\_unload@{\_unload}}
\index{\_unload@{\_unload}!Ogre::GpuProgramUsage@{Ogre::GpuProgramUsage}}
\doxysubsubsection{\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::GpuProgramUsage@{Ogre::GpuProgramUsage}!calculateSize@{calculateSize}}
\index{calculateSize@{calculateSize}!Ogre::GpuProgramUsage@{Ogre::GpuProgramUsage}}
\doxysubsubsection{\texorpdfstring{calculateSize()}{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::GpuProgramUsage@{Ogre::GpuProgramUsage}!unloadingComplete@{unloadingComplete}}
\index{unloadingComplete@{unloadingComplete}!Ogre::GpuProgramUsage@{Ogre::GpuProgramUsage}}
\doxysubsubsection{\texorpdfstring{unloadingComplete()}{unloadingComplete()}}
{\footnotesize\ttfamily void Ogre\+::\+Gpu\+Program\+Usage\+::unloading\+Complete (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_ogre_1_1_resource}{Resource}} $\ast$}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Called whenever the resource has been unloaded. 



Reimplemented from \mbox{\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::GpuProgramUsage@{Ogre::GpuProgramUsage}!loadingComplete@{loadingComplete}}
\index{loadingComplete@{loadingComplete}!Ogre::GpuProgramUsage@{Ogre::GpuProgramUsage}}
\doxysubsubsection{\texorpdfstring{loadingComplete()}{loadingComplete()}}
{\footnotesize\ttfamily void Ogre\+::\+Gpu\+Program\+Usage\+::loading\+Complete (\begin{DoxyParamCaption}\item[{\mbox{\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 \mbox{\hyperlink{class_ogre_1_1_resource}{Resource}} has been marked as background loaded (
\end{DoxyRemark}
\begin{DoxySeeAlso}{See also}
\mbox{\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 \mbox{\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 \mbox{\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::GpuProgramUsage@{Ogre::GpuProgramUsage}!\_getProgramByName@{\_getProgramByName}}
\index{\_getProgramByName@{\_getProgramByName}!Ogre::GpuProgramUsage@{Ogre::GpuProgramUsage}}
\doxysubsubsection{\texorpdfstring{\_getProgramByName()}{\_getProgramByName()}}
{\footnotesize\ttfamily static \mbox{\hyperlink{namespace_ogre_a2c452533979dfdf73a296288e94d920b}{Gpu\+Program\+Ptr}} Ogre\+::\+Gpu\+Program\+Usage\+::\+\_\+get\+Program\+By\+Name (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{name,  }\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{group,  }\item[{\mbox{\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::GpuProgramUsage@{Ogre::GpuProgramUsage}!preparingComplete@{preparingComplete}}
\index{preparingComplete@{preparingComplete}!Ogre::GpuProgramUsage@{Ogre::GpuProgramUsage}}
\doxysubsubsection{\texorpdfstring{preparingComplete()}{preparingComplete()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Resource\+::\+Listener\+::preparing\+Complete (\begin{DoxyParamCaption}\item[{\mbox{\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 \mbox{\hyperlink{class_ogre_1_1_resource}{Resource}} has been marked as background loaded (
\end{DoxyRemark}
\begin{DoxySeeAlso}{See also}
\mbox{\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 \mbox{\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 
\mbox{\hyperlink{_ogre_gpu_program_usage_8h}{Ogre\+Gpu\+Program\+Usage.\+h}}\end{DoxyCompactItemize}
