\hypertarget{class_ogre_1_1_r_t_shader_1_1_target_render_state}{}\doxysection{Ogre\+::R\+T\+Shader\+::Target\+Render\+State Class Reference}
\label{class_ogre_1_1_r_t_shader_1_1_target_render_state}\index{Ogre::RTShader::TargetRenderState@{Ogre::RTShader::TargetRenderState}}


This is the target render state.  




{\ttfamily \#include $<$Ogre\+Shader\+Render\+State.\+h$>$}



Inheritance diagram for Ogre\+::R\+T\+Shader\+::Target\+Render\+State\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=242pt]{class_ogre_1_1_r_t_shader_1_1_target_render_state__inherit__graph}
\end{center}
\end{figure}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_target_render_state_af77db1b842b76ad71dd6a8fc1d2cfbfc}{Target\+Render\+State}} ()
\begin{DoxyCompactList}\small\item\em Class default constructor. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_target_render_state_ad2e75b375fce87f64414987fc84cc420}{acquire\+Programs}} (\mbox{\hyperlink{class_ogre_1_1_pass}{Pass}} $\ast$pass)
\begin{DoxyCompactList}\small\item\em Acquire C\+P\+U/\+G\+PU programs set associated with the given render state and bind them to the pass. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_target_render_state_a7a33d4ee212f7e8fb483cb33e36cf0fb}{add\+Sub\+Render\+State\+Instance}} (\mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state}{Sub\+Render\+State}} $\ast$sub\+Render\+State)
\begin{DoxyCompactList}\small\item\em Add sub render state to this render state. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_render_state_af66edaf33c654e03ef89f1eaec384a1f}{add\+Template\+Sub\+Render\+State}} (\mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state}{Sub\+Render\+State}} $\ast$sub\+Render\+State)
\begin{DoxyCompactList}\small\item\em Add a template sub render state to this render state. \end{DoxyCompactList}\item 
const \mbox{\hyperlink{namespace_ogre_aecf82a286f08cdf003677d472d33989b}{Vector3i}} \& \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_render_state_aa5f1b258f3a281cfa61f2a232ae6c18d}{get\+Light\+Count}} () const
\begin{DoxyCompactList}\small\item\em Get the light count per light type. \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_render_state_ae0a7511e041d89378c5369ba2f42c23d}{get\+Light\+Count\+Auto\+Update}} () const
\begin{DoxyCompactList}\small\item\em Return true if this render state override the light count. \end{DoxyCompactList}\item 
const \mbox{\hyperlink{group___r_t_shader_ga4baf7a0833de141d1d8b8115c75c4794}{Sub\+Render\+State\+List}} \& \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_render_state_af6e6e0ebfd0bab55093172a795fc61e6}{get\+Template\+Sub\+Render\+State\+List}} () const
\begin{DoxyCompactList}\small\item\em Get the list of the template sub render states composing this render state. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_target_render_state_a48a0f2bf833e3dd562b68e16bdbcfef8}{link}} (const \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_render_state}{Render\+State}} \&other, \mbox{\hyperlink{class_ogre_1_1_pass}{Pass}} $\ast$src\+Pass, \mbox{\hyperlink{class_ogre_1_1_pass}{Pass}} $\ast$dst\+Pass)
\begin{DoxyCompactList}\small\item\em Link this target render state with the given render state. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_target_render_state_aeb46b1490a6a10c5c7d036114165b51a}{release\+Programs}} (\mbox{\hyperlink{class_ogre_1_1_pass}{Pass}} $\ast$pass)
\begin{DoxyCompactList}\small\item\em Release C\+P\+U/\+G\+PU programs set associated with the given render state and pass. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_target_render_state_a5d7eb06c5a7db62569b4c8757282b9c8}{remove\+Sub\+Render\+State\+Instance}} (\mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state}{Sub\+Render\+State}} $\ast$sub\+Render\+State)
\begin{DoxyCompactList}\small\item\em Remove sub render state from this render state. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_render_state_adf57c1505668d7cd9fc65c33231ee3ff}{remove\+Template\+Sub\+Render\+State}} (\mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state}{Sub\+Render\+State}} $\ast$sub\+Render\+State)
\begin{DoxyCompactList}\small\item\em Remove a template sub render state from this render state. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_render_state_a0ca983d7872dd4af086d73f1685188f1}{reset}} ()
\begin{DoxyCompactList}\small\item\em Reset this render state. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_render_state_acb10ca9d88182aa3051086c5acee656f}{set\+Light\+Count}} (const \mbox{\hyperlink{namespace_ogre_aecf82a286f08cdf003677d472d33989b}{Vector3i}} \&light\+Count)
\begin{DoxyCompactList}\small\item\em Set the light count per light type. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_render_state_acd05f1eaf224a41f89b4c94823b96877}{set\+Light\+Count\+Auto\+Update}} (bool auto\+Update)
\begin{DoxyCompactList}\small\item\em Set the light count auto update state. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_target_render_state_a4ea63525389fcb29b60f12bafcb55dbf}{update\+Gpu\+Programs\+Params}} (\mbox{\hyperlink{class_ogre_1_1_renderable}{Renderable}} $\ast$rend, const \mbox{\hyperlink{class_ogre_1_1_pass}{Pass}} $\ast$pass, const \mbox{\hyperlink{class_ogre_1_1_auto_param_data_source}{Auto\+Param\+Data\+Source}} $\ast$source, const \mbox{\hyperlink{group___general_gaab30ef14aae93306a6044cb38d835f0c}{Light\+List}} $\ast$p\+Light\+List)
\begin{DoxyCompactList}\small\item\em Update the G\+PU programs constant parameters before a renderable is rendered. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Static Public Attributes}
\begin{DoxyCompactItemize}
\item 
static const char $\ast$ \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_target_render_state_ad89fc9a3c7ec0c73a5d7805013547c24}{User\+Key}}
\begin{DoxyCompactList}\small\item\em Key name for associating with a \mbox{\hyperlink{class_ogre_1_1_pass}{Pass}} instance. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Friends}
\begin{DoxyCompactItemize}
\item 
class \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_target_render_state_a0ebb9db4c085496981b7dbdd61f34fc9}{F\+F\+P\+Render\+State\+Builder}}
\item 
class \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_target_render_state_ae46e120edae3a1f22dc68ebde7fbcfca}{Program\+Manager}}
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
This is the target render state. 

This class will hold the actual generated C\+P\+U/\+G\+PU programs. It will be initially build from the F\+FP state of a given \mbox{\hyperlink{class_ogre_1_1_pass}{Pass}} by the F\+FP builder and then will be linked with the custom pass render state and the global scheme render state. See Shader\+Generator\+::\+S\+G\+Pass\+::build\+Target\+Render\+State(). 

\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_target_render_state_af77db1b842b76ad71dd6a8fc1d2cfbfc}\label{class_ogre_1_1_r_t_shader_1_1_target_render_state_af77db1b842b76ad71dd6a8fc1d2cfbfc}} 
\index{Ogre::RTShader::TargetRenderState@{Ogre::RTShader::TargetRenderState}!TargetRenderState@{TargetRenderState}}
\index{TargetRenderState@{TargetRenderState}!Ogre::RTShader::TargetRenderState@{Ogre::RTShader::TargetRenderState}}
\doxysubsubsection{\texorpdfstring{TargetRenderState()}{TargetRenderState()}}
{\footnotesize\ttfamily Ogre\+::\+R\+T\+Shader\+::\+Target\+Render\+State\+::\+Target\+Render\+State (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Class default constructor. 



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_target_render_state_a48a0f2bf833e3dd562b68e16bdbcfef8}\label{class_ogre_1_1_r_t_shader_1_1_target_render_state_a48a0f2bf833e3dd562b68e16bdbcfef8}} 
\index{Ogre::RTShader::TargetRenderState@{Ogre::RTShader::TargetRenderState}!link@{link}}
\index{link@{link}!Ogre::RTShader::TargetRenderState@{Ogre::RTShader::TargetRenderState}}
\doxysubsubsection{\texorpdfstring{link()}{link()}}
{\footnotesize\ttfamily void Ogre\+::\+R\+T\+Shader\+::\+Target\+Render\+State\+::link (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_render_state}{Render\+State}} \&}]{other,  }\item[{\mbox{\hyperlink{class_ogre_1_1_pass}{Pass}} $\ast$}]{src\+Pass,  }\item[{\mbox{\hyperlink{class_ogre_1_1_pass}{Pass}} $\ast$}]{dst\+Pass }\end{DoxyParamCaption})}



Link this target render state with the given render state. 

Only sub render states with execution order that don\textquotesingle{}t exist in this render state will be added. ~\newline
 
\begin{DoxyParams}{Parameters}
{\em other} & The other render state to append to this state. \\
\hline
{\em src\+Pass} & The source pass that this render state is constructed from. \\
\hline
{\em dst\+Pass} & The destination pass that constructed from this render state. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_target_render_state_a4ea63525389fcb29b60f12bafcb55dbf}\label{class_ogre_1_1_r_t_shader_1_1_target_render_state_a4ea63525389fcb29b60f12bafcb55dbf}} 
\index{Ogre::RTShader::TargetRenderState@{Ogre::RTShader::TargetRenderState}!updateGpuProgramsParams@{updateGpuProgramsParams}}
\index{updateGpuProgramsParams@{updateGpuProgramsParams}!Ogre::RTShader::TargetRenderState@{Ogre::RTShader::TargetRenderState}}
\doxysubsubsection{\texorpdfstring{updateGpuProgramsParams()}{updateGpuProgramsParams()}}
{\footnotesize\ttfamily void Ogre\+::\+R\+T\+Shader\+::\+Target\+Render\+State\+::update\+Gpu\+Programs\+Params (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_ogre_1_1_renderable}{Renderable}} $\ast$}]{rend,  }\item[{const \mbox{\hyperlink{class_ogre_1_1_pass}{Pass}} $\ast$}]{pass,  }\item[{const \mbox{\hyperlink{class_ogre_1_1_auto_param_data_source}{Auto\+Param\+Data\+Source}} $\ast$}]{source,  }\item[{const \mbox{\hyperlink{group___general_gaab30ef14aae93306a6044cb38d835f0c}{Light\+List}} $\ast$}]{p\+Light\+List }\end{DoxyParamCaption})}



Update the G\+PU programs constant parameters before a renderable is rendered. 


\begin{DoxyParams}{Parameters}
{\em rend} & The renderable object that is going to be rendered. \\
\hline
{\em pass} & The pass that is used to do the rendering operation. \\
\hline
{\em source} & The auto parameter auto source instance. \\
\hline
{\em p\+Light\+List} & The light list used for the current rendering operation. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_target_render_state_a7a33d4ee212f7e8fb483cb33e36cf0fb}\label{class_ogre_1_1_r_t_shader_1_1_target_render_state_a7a33d4ee212f7e8fb483cb33e36cf0fb}} 
\index{Ogre::RTShader::TargetRenderState@{Ogre::RTShader::TargetRenderState}!addSubRenderStateInstance@{addSubRenderStateInstance}}
\index{addSubRenderStateInstance@{addSubRenderStateInstance}!Ogre::RTShader::TargetRenderState@{Ogre::RTShader::TargetRenderState}}
\doxysubsubsection{\texorpdfstring{addSubRenderStateInstance()}{addSubRenderStateInstance()}}
{\footnotesize\ttfamily void Ogre\+::\+R\+T\+Shader\+::\+Target\+Render\+State\+::add\+Sub\+Render\+State\+Instance (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state}{Sub\+Render\+State}} $\ast$}]{sub\+Render\+State }\end{DoxyParamCaption})}



Add sub render state to this render state. 


\begin{DoxyParams}{Parameters}
{\em sub\+Render\+State} & The sub render state to add. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_target_render_state_a5d7eb06c5a7db62569b4c8757282b9c8}\label{class_ogre_1_1_r_t_shader_1_1_target_render_state_a5d7eb06c5a7db62569b4c8757282b9c8}} 
\index{Ogre::RTShader::TargetRenderState@{Ogre::RTShader::TargetRenderState}!removeSubRenderStateInstance@{removeSubRenderStateInstance}}
\index{removeSubRenderStateInstance@{removeSubRenderStateInstance}!Ogre::RTShader::TargetRenderState@{Ogre::RTShader::TargetRenderState}}
\doxysubsubsection{\texorpdfstring{removeSubRenderStateInstance()}{removeSubRenderStateInstance()}}
{\footnotesize\ttfamily void Ogre\+::\+R\+T\+Shader\+::\+Target\+Render\+State\+::remove\+Sub\+Render\+State\+Instance (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state}{Sub\+Render\+State}} $\ast$}]{sub\+Render\+State }\end{DoxyParamCaption})}



Remove sub render state from this render state. 


\begin{DoxyParams}{Parameters}
{\em sub\+Render\+State} & The sub render state to remove. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_target_render_state_ad2e75b375fce87f64414987fc84cc420}\label{class_ogre_1_1_r_t_shader_1_1_target_render_state_ad2e75b375fce87f64414987fc84cc420}} 
\index{Ogre::RTShader::TargetRenderState@{Ogre::RTShader::TargetRenderState}!acquirePrograms@{acquirePrograms}}
\index{acquirePrograms@{acquirePrograms}!Ogre::RTShader::TargetRenderState@{Ogre::RTShader::TargetRenderState}}
\doxysubsubsection{\texorpdfstring{acquirePrograms()}{acquirePrograms()}}
{\footnotesize\ttfamily void Ogre\+::\+R\+T\+Shader\+::\+Target\+Render\+State\+::acquire\+Programs (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_ogre_1_1_pass}{Pass}} $\ast$}]{pass }\end{DoxyParamCaption})}



Acquire C\+P\+U/\+G\+PU programs set associated with the given render state and bind them to the pass. 


\begin{DoxyParams}{Parameters}
{\em pass} & The pass to bind the programs to. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_target_render_state_aeb46b1490a6a10c5c7d036114165b51a}\label{class_ogre_1_1_r_t_shader_1_1_target_render_state_aeb46b1490a6a10c5c7d036114165b51a}} 
\index{Ogre::RTShader::TargetRenderState@{Ogre::RTShader::TargetRenderState}!releasePrograms@{releasePrograms}}
\index{releasePrograms@{releasePrograms}!Ogre::RTShader::TargetRenderState@{Ogre::RTShader::TargetRenderState}}
\doxysubsubsection{\texorpdfstring{releasePrograms()}{releasePrograms()}}
{\footnotesize\ttfamily void Ogre\+::\+R\+T\+Shader\+::\+Target\+Render\+State\+::release\+Programs (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_ogre_1_1_pass}{Pass}} $\ast$}]{pass }\end{DoxyParamCaption})}



Release C\+P\+U/\+G\+PU programs set associated with the given render state and pass. 


\begin{DoxyParams}{Parameters}
{\em pass} & The pass to release the programs from. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_render_state_a0ca983d7872dd4af086d73f1685188f1}\label{class_ogre_1_1_r_t_shader_1_1_render_state_a0ca983d7872dd4af086d73f1685188f1}} 
\index{Ogre::RTShader::TargetRenderState@{Ogre::RTShader::TargetRenderState}!reset@{reset}}
\index{reset@{reset}!Ogre::RTShader::TargetRenderState@{Ogre::RTShader::TargetRenderState}}
\doxysubsubsection{\texorpdfstring{reset()}{reset()}}
{\footnotesize\ttfamily void Ogre\+::\+R\+T\+Shader\+::\+Render\+State\+::reset (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inherited]}}



Reset this render state. 

\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_render_state_af66edaf33c654e03ef89f1eaec384a1f}\label{class_ogre_1_1_r_t_shader_1_1_render_state_af66edaf33c654e03ef89f1eaec384a1f}} 
\index{Ogre::RTShader::TargetRenderState@{Ogre::RTShader::TargetRenderState}!addTemplateSubRenderState@{addTemplateSubRenderState}}
\index{addTemplateSubRenderState@{addTemplateSubRenderState}!Ogre::RTShader::TargetRenderState@{Ogre::RTShader::TargetRenderState}}
\doxysubsubsection{\texorpdfstring{addTemplateSubRenderState()}{addTemplateSubRenderState()}}
{\footnotesize\ttfamily void Ogre\+::\+R\+T\+Shader\+::\+Render\+State\+::add\+Template\+Sub\+Render\+State (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state}{Sub\+Render\+State}} $\ast$}]{sub\+Render\+State }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inherited]}}



Add a template sub render state to this render state. 


\begin{DoxyParams}{Parameters}
{\em sub\+Render\+State} & The sub render state template to add. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_render_state_adf57c1505668d7cd9fc65c33231ee3ff}\label{class_ogre_1_1_r_t_shader_1_1_render_state_adf57c1505668d7cd9fc65c33231ee3ff}} 
\index{Ogre::RTShader::TargetRenderState@{Ogre::RTShader::TargetRenderState}!removeTemplateSubRenderState@{removeTemplateSubRenderState}}
\index{removeTemplateSubRenderState@{removeTemplateSubRenderState}!Ogre::RTShader::TargetRenderState@{Ogre::RTShader::TargetRenderState}}
\doxysubsubsection{\texorpdfstring{removeTemplateSubRenderState()}{removeTemplateSubRenderState()}}
{\footnotesize\ttfamily void Ogre\+::\+R\+T\+Shader\+::\+Render\+State\+::remove\+Template\+Sub\+Render\+State (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_sub_render_state}{Sub\+Render\+State}} $\ast$}]{sub\+Render\+State }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inherited]}}



Remove a template sub render state from this render state. 


\begin{DoxyParams}{Parameters}
{\em sub\+Render\+State} & The sub render state to remove. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_render_state_af6e6e0ebfd0bab55093172a795fc61e6}\label{class_ogre_1_1_r_t_shader_1_1_render_state_af6e6e0ebfd0bab55093172a795fc61e6}} 
\index{Ogre::RTShader::TargetRenderState@{Ogre::RTShader::TargetRenderState}!getTemplateSubRenderStateList@{getTemplateSubRenderStateList}}
\index{getTemplateSubRenderStateList@{getTemplateSubRenderStateList}!Ogre::RTShader::TargetRenderState@{Ogre::RTShader::TargetRenderState}}
\doxysubsubsection{\texorpdfstring{getTemplateSubRenderStateList()}{getTemplateSubRenderStateList()}}
{\footnotesize\ttfamily const \mbox{\hyperlink{group___r_t_shader_ga4baf7a0833de141d1d8b8115c75c4794}{Sub\+Render\+State\+List}}\& Ogre\+::\+R\+T\+Shader\+::\+Render\+State\+::get\+Template\+Sub\+Render\+State\+List (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [inherited]}}



Get the list of the template sub render states composing this render state. 

\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_render_state_acb10ca9d88182aa3051086c5acee656f}\label{class_ogre_1_1_r_t_shader_1_1_render_state_acb10ca9d88182aa3051086c5acee656f}} 
\index{Ogre::RTShader::TargetRenderState@{Ogre::RTShader::TargetRenderState}!setLightCount@{setLightCount}}
\index{setLightCount@{setLightCount}!Ogre::RTShader::TargetRenderState@{Ogre::RTShader::TargetRenderState}}
\doxysubsubsection{\texorpdfstring{setLightCount()}{setLightCount()}}
{\footnotesize\ttfamily void Ogre\+::\+R\+T\+Shader\+::\+Render\+State\+::set\+Light\+Count (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{namespace_ogre_aecf82a286f08cdf003677d472d33989b}{Vector3i}} \&}]{light\+Count }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inherited]}}



Set the light count per light type. 


\begin{DoxyParams}{Parameters}
{\em light\+Count} & The light count per type. light\+Count\mbox{[}0\mbox{]} defines the point light count. light\+Count\mbox{[}1\mbox{]} defines the directional light count. light\+Count\mbox{[}2\mbox{]} defines the spot light count. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_render_state_aa5f1b258f3a281cfa61f2a232ae6c18d}\label{class_ogre_1_1_r_t_shader_1_1_render_state_aa5f1b258f3a281cfa61f2a232ae6c18d}} 
\index{Ogre::RTShader::TargetRenderState@{Ogre::RTShader::TargetRenderState}!getLightCount@{getLightCount}}
\index{getLightCount@{getLightCount}!Ogre::RTShader::TargetRenderState@{Ogre::RTShader::TargetRenderState}}
\doxysubsubsection{\texorpdfstring{getLightCount()}{getLightCount()}}
{\footnotesize\ttfamily const \mbox{\hyperlink{namespace_ogre_aecf82a286f08cdf003677d472d33989b}{Vector3i}}\& Ogre\+::\+R\+T\+Shader\+::\+Render\+State\+::get\+Light\+Count (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inherited]}}



Get the light count per light type. 

light\+Count\mbox{[}0\mbox{]} defines the point light count. light\+Count\mbox{[}1\mbox{]} defines the directional light count. light\+Count\mbox{[}2\mbox{]} defines the spot light count. \mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_render_state_acd05f1eaf224a41f89b4c94823b96877}\label{class_ogre_1_1_r_t_shader_1_1_render_state_acd05f1eaf224a41f89b4c94823b96877}} 
\index{Ogre::RTShader::TargetRenderState@{Ogre::RTShader::TargetRenderState}!setLightCountAutoUpdate@{setLightCountAutoUpdate}}
\index{setLightCountAutoUpdate@{setLightCountAutoUpdate}!Ogre::RTShader::TargetRenderState@{Ogre::RTShader::TargetRenderState}}
\doxysubsubsection{\texorpdfstring{setLightCountAutoUpdate()}{setLightCountAutoUpdate()}}
{\footnotesize\ttfamily void Ogre\+::\+R\+T\+Shader\+::\+Render\+State\+::set\+Light\+Count\+Auto\+Update (\begin{DoxyParamCaption}\item[{bool}]{auto\+Update }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [inherited]}}



Set the light count auto update state. 

If the value is false the light count will remain static for the values that were set by the user. If the value is true the light count will be updated from the owner shader generator scheme based on current scene lights. The default is true. \mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_render_state_ae0a7511e041d89378c5369ba2f42c23d}\label{class_ogre_1_1_r_t_shader_1_1_render_state_ae0a7511e041d89378c5369ba2f42c23d}} 
\index{Ogre::RTShader::TargetRenderState@{Ogre::RTShader::TargetRenderState}!getLightCountAutoUpdate@{getLightCountAutoUpdate}}
\index{getLightCountAutoUpdate@{getLightCountAutoUpdate}!Ogre::RTShader::TargetRenderState@{Ogre::RTShader::TargetRenderState}}
\doxysubsubsection{\texorpdfstring{getLightCountAutoUpdate()}{getLightCountAutoUpdate()}}
{\footnotesize\ttfamily bool Ogre\+::\+R\+T\+Shader\+::\+Render\+State\+::get\+Light\+Count\+Auto\+Update (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [inherited]}}



Return true if this render state override the light count. 

If light count is not overridden it will be updated from the shader generator based on current scene lights. 

\doxysubsection{Friends And Related Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_target_render_state_ae46e120edae3a1f22dc68ebde7fbcfca}\label{class_ogre_1_1_r_t_shader_1_1_target_render_state_ae46e120edae3a1f22dc68ebde7fbcfca}} 
\index{Ogre::RTShader::TargetRenderState@{Ogre::RTShader::TargetRenderState}!ProgramManager@{ProgramManager}}
\index{ProgramManager@{ProgramManager}!Ogre::RTShader::TargetRenderState@{Ogre::RTShader::TargetRenderState}}
\doxysubsubsection{\texorpdfstring{ProgramManager}{ProgramManager}}
{\footnotesize\ttfamily friend class \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_program_manager}{Program\+Manager}}\hspace{0.3cm}{\ttfamily [friend]}}

\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_target_render_state_a0ebb9db4c085496981b7dbdd61f34fc9}\label{class_ogre_1_1_r_t_shader_1_1_target_render_state_a0ebb9db4c085496981b7dbdd61f34fc9}} 
\index{Ogre::RTShader::TargetRenderState@{Ogre::RTShader::TargetRenderState}!FFPRenderStateBuilder@{FFPRenderStateBuilder}}
\index{FFPRenderStateBuilder@{FFPRenderStateBuilder}!Ogre::RTShader::TargetRenderState@{Ogre::RTShader::TargetRenderState}}
\doxysubsubsection{\texorpdfstring{FFPRenderStateBuilder}{FFPRenderStateBuilder}}
{\footnotesize\ttfamily friend class \mbox{\hyperlink{class_ogre_1_1_r_t_shader_1_1_f_f_p_render_state_builder}{F\+F\+P\+Render\+State\+Builder}}\hspace{0.3cm}{\ttfamily [friend]}}



\doxysubsection{Member Data Documentation}
\mbox{\Hypertarget{class_ogre_1_1_r_t_shader_1_1_target_render_state_ad89fc9a3c7ec0c73a5d7805013547c24}\label{class_ogre_1_1_r_t_shader_1_1_target_render_state_ad89fc9a3c7ec0c73a5d7805013547c24}} 
\index{Ogre::RTShader::TargetRenderState@{Ogre::RTShader::TargetRenderState}!UserKey@{UserKey}}
\index{UserKey@{UserKey}!Ogre::RTShader::TargetRenderState@{Ogre::RTShader::TargetRenderState}}
\doxysubsubsection{\texorpdfstring{UserKey}{UserKey}}
{\footnotesize\ttfamily const char$\ast$ Ogre\+::\+R\+T\+Shader\+::\+Target\+Render\+State\+::\+User\+Key\hspace{0.3cm}{\ttfamily [static]}}



Key name for associating with a \mbox{\hyperlink{class_ogre_1_1_pass}{Pass}} instance. 



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{_ogre_shader_render_state_8h}{Ogre\+Shader\+Render\+State.\+h}}\end{DoxyCompactItemize}
