\hypertarget{class_ogre_1_1_g_l_e_s2_state_cache_manager}{}\section{Ogre\+:\+:G\+L\+E\+S2\+State\+Cache\+Manager Class Reference}
\label{class_ogre_1_1_g_l_e_s2_state_cache_manager}\index{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}}


{\ttfamily \#include $<$Ogre\+G\+L\+E\+S2\+State\+Cache\+Manager.\+h$>$}



Inheritance diagram for Ogre\+:\+:G\+L\+E\+S2\+State\+Cache\+Manager\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=254pt]{class_ogre_1_1_g_l_e_s2_state_cache_manager__inherit__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_ogre_1_1_g_l_e_s2_state_cache_manager_ad313859f1581b5f8dca222a145036d43}{G\+L\+E\+S2\+State\+Cache\+Manager} (void)
\item 
bool \hyperlink{class_ogre_1_1_g_l_e_s2_state_cache_manager_a0524ecd8f9c8a6dfabf0be8ba3bf5f04}{activate\+G\+L\+Texture\+Unit} (unsigned char unit)
\begin{DoxyCompactList}\small\item\em Activate an Open\+GL texture unit. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_g_l_e_s2_state_cache_manager_a84be44eca0d21ef34bd2a60e3a876eb2}{bind\+G\+L\+Buffer} (G\+Lenum target, G\+Luint buffer, bool force=false)
\begin{DoxyCompactList}\small\item\em Bind an Open\+GL buffer of any type. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_g_l_e_s2_state_cache_manager_a7006ed2312f4ea47256c6e2df13cfab9}{bind\+G\+L\+Texture} (G\+Lenum target, G\+Luint texture)
\begin{DoxyCompactList}\small\item\em Bind an Open\+GL texture of any type. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_g_l_e_s2_state_cache_manager_ab274e892ca41777fbb8448d4410b10bc}{bind\+G\+L\+Vertex\+Array} (G\+Luint vao)
\begin{DoxyCompactList}\small\item\em Bind an Open\+GL Vertex array object. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_g_l_e_s2_state_cache_manager_aa530145134dc43d95084ac1dc6434a58}{clear\+Cache} ()
\begin{DoxyCompactList}\small\item\em Clears all cached values. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_g_l_e_s2_state_cache_manager_a422a8d25d1089cd8b1dbfe6c62abee66}{delete\+G\+L\+Buffer} (G\+Lenum target, G\+Luint buffer)
\begin{DoxyCompactList}\small\item\em Delete an Open\+GL buffer of any type. \end{DoxyCompactList}\item 
\hyperlink{namespace_ogre_a07f1f7c1d84d58c9beae02e1ebb945e4}{uchar} $\ast$ \hyperlink{class_ogre_1_1_g_l_state_cache_manager_common_aed0a1810279e037e0c7b12f9ffc0c65e}{get\+Colour\+Mask} ()
\begin{DoxyCompactList}\small\item\em Gets the current colour mask setting. \end{DoxyCompactList}\item 
\hyperlink{namespace_ogre_a07f1f7c1d84d58c9beae02e1ebb945e4}{uchar} \hyperlink{class_ogre_1_1_g_l_state_cache_manager_common_a6176362b2fcb20cccafc9821951778ee}{get\+Depth\+Mask} () const
\begin{DoxyCompactList}\small\item\em Gets the current depth mask setting. \end{DoxyCompactList}\item 
\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32} \hyperlink{class_ogre_1_1_g_l_state_cache_manager_common_a01d78d20763464f69a157b0c81ba454f}{get\+Stencil\+Mask} (void) const
\begin{DoxyCompactList}\small\item\em Gets the current stencil mask. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_g_l_state_cache_manager_common_a8cf8ecd02d3f7d9ecbda6decdabc09d8}{get\+Viewport} (int $\ast$array)
\item 
void \hyperlink{class_ogre_1_1_g_l_e_s2_state_cache_manager_a1ff272929508ab8ca6c8ba5a12a33441}{initialize\+Cache} ()
\begin{DoxyCompactList}\small\item\em Initialize our cache variables and sets the GL states on the current context. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_g_l_e_s2_state_cache_manager_a432ddbaea94648ed81c47704dc884188}{invalidate\+State\+For\+Texture} (G\+Luint texture)
\begin{DoxyCompactList}\small\item\em Invalidates the state associated with a particular texture ID. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_g_l_e_s2_state_cache_manager_a1805c0b3f759ec5591171c5bfa094535}{set\+Blend\+Equation} (G\+Lenum eq)
\begin{DoxyCompactList}\small\item\em Sets the current blend equation setting. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_g_l_e_s2_state_cache_manager_a9bdee66e21113ca21dcb8187705e6bb6}{set\+Blend\+Equation} (G\+Lenum eq\+R\+GB, G\+Lenum eqA)
\begin{DoxyCompactList}\small\item\em Set the blend equation for R\+GB and alpha separately. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_g_l_e_s2_state_cache_manager_a71bd37c7caace8b9eb84ec527622b43e}{set\+Blend\+Func} (G\+Lenum source, G\+Lenum dest)
\begin{DoxyCompactList}\small\item\em Sets the blending function. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_g_l_e_s2_state_cache_manager_a1138e229ebb22dcb48a653c64b17078c}{set\+Clear\+Colour} (G\+Lclampf red, G\+Lclampf green, G\+Lclampf blue, G\+Lclampf alpha)
\begin{DoxyCompactList}\small\item\em Sets the color to clear to. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_g_l_e_s2_state_cache_manager_a2e7b4e0aeea2eb085166854bf0a3c696}{set\+Clear\+Depth} (G\+Lclampf depth)
\begin{DoxyCompactList}\small\item\em Sets the clear depth in the range from \mbox{[}0..1\mbox{]}. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_g_l_e_s2_state_cache_manager_a44f7d9d85aaa842214540eb4c8d50eba}{set\+Colour\+Mask} (G\+Lboolean red, G\+Lboolean green, G\+Lboolean blue, G\+Lboolean alpha)
\begin{DoxyCompactList}\small\item\em Sets the current colour mask. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_g_l_e_s2_state_cache_manager_aab21f70a86de20c8c8eb7379a4b3f693}{set\+Cull\+Face} (G\+Lenum face)
\begin{DoxyCompactList}\small\item\em Sets the face culling setting. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_g_l_e_s2_state_cache_manager_ae90ba4b9ff4b2397d8146a32010aed54}{set\+Depth\+Func} (G\+Lenum func)
\begin{DoxyCompactList}\small\item\em Sets the current depth test function. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_g_l_e_s2_state_cache_manager_ae0c0afeed7bcede6014921810ba4b861}{set\+Depth\+Mask} (G\+Lboolean mask)
\begin{DoxyCompactList}\small\item\em Sets the current depth mask setting. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_g_l_e_s2_state_cache_manager_a0d1085a96d5e8e9226a8072b8fe5fb1c}{set\+Disabled} (G\+Lenum flag)
\begin{DoxyCompactList}\small\item\em Disables a piece of Open\+GL functionality. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_g_l_e_s2_state_cache_manager_a63b81c90396183a19f7f88c4cff3ef47}{set\+Enabled} (G\+Lenum flag)
\begin{DoxyCompactList}\small\item\em Enables a piece of Open\+GL functionality. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_g_l_e_s2_state_cache_manager_a803ae65e306c68d7532c37aeb34bb249}{set\+Stencil\+Mask} (G\+Luint mask)
\begin{DoxyCompactList}\small\item\em Sets the stencil mask. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_g_l_e_s2_state_cache_manager_ae0932c246272217a277393402d190692}{set\+Tex\+Parameterf} (G\+Lenum target, G\+Lenum pname, G\+Lfloat param)
\begin{DoxyCompactList}\small\item\em Sets a float parameter value per texture target. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_g_l_e_s2_state_cache_manager_a94e604ecf4c3069872d61f800d5232c9}{set\+Tex\+Parameteri} (G\+Lenum target, G\+Lenum pname, G\+Lint param)
\begin{DoxyCompactList}\small\item\em Sets an integer parameter value per texture target. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_g_l_e_s2_state_cache_manager_aeb6f9e847475e172eaefc950e141da7d}{set\+Viewport} (G\+Lint x, G\+Lint y, G\+Lsizei width, G\+Lsizei height)
\end{DoxyCompactItemize}


\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_g_l_e_s2_state_cache_manager_ad313859f1581b5f8dca222a145036d43}\label{class_ogre_1_1_g_l_e_s2_state_cache_manager_ad313859f1581b5f8dca222a145036d43}} 
\index{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}!G\+L\+E\+S2\+State\+Cache\+Manager@{G\+L\+E\+S2\+State\+Cache\+Manager}}
\index{G\+L\+E\+S2\+State\+Cache\+Manager@{G\+L\+E\+S2\+State\+Cache\+Manager}!Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}}
\subsubsection{\texorpdfstring{G\+L\+E\+S2\+State\+Cache\+Manager()}{GLES2StateCacheManager()}}
{\footnotesize\ttfamily Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager\+::\+G\+L\+E\+S2\+State\+Cache\+Manager (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_g_l_e_s2_state_cache_manager_a1ff272929508ab8ca6c8ba5a12a33441}\label{class_ogre_1_1_g_l_e_s2_state_cache_manager_a1ff272929508ab8ca6c8ba5a12a33441}} 
\index{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}!initialize\+Cache@{initialize\+Cache}}
\index{initialize\+Cache@{initialize\+Cache}!Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}}
\subsubsection{\texorpdfstring{initialize\+Cache()}{initializeCache()}}
{\footnotesize\ttfamily void Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager\+::initialize\+Cache (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Initialize our cache variables and sets the GL states on the current context. 

\mbox{\Hypertarget{class_ogre_1_1_g_l_e_s2_state_cache_manager_aa530145134dc43d95084ac1dc6434a58}\label{class_ogre_1_1_g_l_e_s2_state_cache_manager_aa530145134dc43d95084ac1dc6434a58}} 
\index{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}!clear\+Cache@{clear\+Cache}}
\index{clear\+Cache@{clear\+Cache}!Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}}
\subsubsection{\texorpdfstring{clear\+Cache()}{clearCache()}}
{\footnotesize\ttfamily void Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager\+::clear\+Cache (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Clears all cached values. 

\mbox{\Hypertarget{class_ogre_1_1_g_l_e_s2_state_cache_manager_a84be44eca0d21ef34bd2a60e3a876eb2}\label{class_ogre_1_1_g_l_e_s2_state_cache_manager_a84be44eca0d21ef34bd2a60e3a876eb2}} 
\index{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}!bind\+G\+L\+Buffer@{bind\+G\+L\+Buffer}}
\index{bind\+G\+L\+Buffer@{bind\+G\+L\+Buffer}!Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}}
\subsubsection{\texorpdfstring{bind\+G\+L\+Buffer()}{bindGLBuffer()}}
{\footnotesize\ttfamily void Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager\+::bind\+G\+L\+Buffer (\begin{DoxyParamCaption}\item[{G\+Lenum}]{target,  }\item[{G\+Luint}]{buffer,  }\item[{bool}]{force = {\ttfamily false} }\end{DoxyParamCaption})}



Bind an Open\+GL buffer of any type. 


\begin{DoxyParams}{Parameters}
{\em target} & The buffer target. \\
\hline
{\em buffer} & The buffer ID. \\
\hline
{\em force} & Optional parameter to force an update. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_g_l_e_s2_state_cache_manager_a422a8d25d1089cd8b1dbfe6c62abee66}\label{class_ogre_1_1_g_l_e_s2_state_cache_manager_a422a8d25d1089cd8b1dbfe6c62abee66}} 
\index{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}!delete\+G\+L\+Buffer@{delete\+G\+L\+Buffer}}
\index{delete\+G\+L\+Buffer@{delete\+G\+L\+Buffer}!Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}}
\subsubsection{\texorpdfstring{delete\+G\+L\+Buffer()}{deleteGLBuffer()}}
{\footnotesize\ttfamily void Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager\+::delete\+G\+L\+Buffer (\begin{DoxyParamCaption}\item[{G\+Lenum}]{target,  }\item[{G\+Luint}]{buffer }\end{DoxyParamCaption})}



Delete an Open\+GL buffer of any type. 


\begin{DoxyParams}{Parameters}
{\em target} & The buffer target. \\
\hline
{\em buffer} & The buffer ID. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_g_l_e_s2_state_cache_manager_ab274e892ca41777fbb8448d4410b10bc}\label{class_ogre_1_1_g_l_e_s2_state_cache_manager_ab274e892ca41777fbb8448d4410b10bc}} 
\index{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}!bind\+G\+L\+Vertex\+Array@{bind\+G\+L\+Vertex\+Array}}
\index{bind\+G\+L\+Vertex\+Array@{bind\+G\+L\+Vertex\+Array}!Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}}
\subsubsection{\texorpdfstring{bind\+G\+L\+Vertex\+Array()}{bindGLVertexArray()}}
{\footnotesize\ttfamily void Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager\+::bind\+G\+L\+Vertex\+Array (\begin{DoxyParamCaption}\item[{G\+Luint}]{vao }\end{DoxyParamCaption})}



Bind an Open\+GL Vertex array object. 


\begin{DoxyParams}{Parameters}
{\em vao} & The vertex array object ID. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_g_l_e_s2_state_cache_manager_a7006ed2312f4ea47256c6e2df13cfab9}\label{class_ogre_1_1_g_l_e_s2_state_cache_manager_a7006ed2312f4ea47256c6e2df13cfab9}} 
\index{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}!bind\+G\+L\+Texture@{bind\+G\+L\+Texture}}
\index{bind\+G\+L\+Texture@{bind\+G\+L\+Texture}!Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}}
\subsubsection{\texorpdfstring{bind\+G\+L\+Texture()}{bindGLTexture()}}
{\footnotesize\ttfamily void Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager\+::bind\+G\+L\+Texture (\begin{DoxyParamCaption}\item[{G\+Lenum}]{target,  }\item[{G\+Luint}]{texture }\end{DoxyParamCaption})}



Bind an Open\+GL texture of any type. 


\begin{DoxyParams}{Parameters}
{\em target} & The texture target. \\
\hline
{\em texture} & The texture ID. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_g_l_e_s2_state_cache_manager_a432ddbaea94648ed81c47704dc884188}\label{class_ogre_1_1_g_l_e_s2_state_cache_manager_a432ddbaea94648ed81c47704dc884188}} 
\index{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}!invalidate\+State\+For\+Texture@{invalidate\+State\+For\+Texture}}
\index{invalidate\+State\+For\+Texture@{invalidate\+State\+For\+Texture}!Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}}
\subsubsection{\texorpdfstring{invalidate\+State\+For\+Texture()}{invalidateStateForTexture()}}
{\footnotesize\ttfamily void Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager\+::invalidate\+State\+For\+Texture (\begin{DoxyParamCaption}\item[{G\+Luint}]{texture }\end{DoxyParamCaption})}



Invalidates the state associated with a particular texture ID. 


\begin{DoxyParams}{Parameters}
{\em texture} & The texture ID. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_g_l_e_s2_state_cache_manager_a94e604ecf4c3069872d61f800d5232c9}\label{class_ogre_1_1_g_l_e_s2_state_cache_manager_a94e604ecf4c3069872d61f800d5232c9}} 
\index{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}!set\+Tex\+Parameteri@{set\+Tex\+Parameteri}}
\index{set\+Tex\+Parameteri@{set\+Tex\+Parameteri}!Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}}
\subsubsection{\texorpdfstring{set\+Tex\+Parameteri()}{setTexParameteri()}}
{\footnotesize\ttfamily void Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager\+::set\+Tex\+Parameteri (\begin{DoxyParamCaption}\item[{G\+Lenum}]{target,  }\item[{G\+Lenum}]{pname,  }\item[{G\+Lint}]{param }\end{DoxyParamCaption})}



Sets an integer parameter value per texture target. 


\begin{DoxyParams}{Parameters}
{\em target} & The texture target. \\
\hline
{\em pname} & The parameter name. \\
\hline
{\em param} & The parameter value. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_g_l_e_s2_state_cache_manager_ae0932c246272217a277393402d190692}\label{class_ogre_1_1_g_l_e_s2_state_cache_manager_ae0932c246272217a277393402d190692}} 
\index{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}!set\+Tex\+Parameterf@{set\+Tex\+Parameterf}}
\index{set\+Tex\+Parameterf@{set\+Tex\+Parameterf}!Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}}
\subsubsection{\texorpdfstring{set\+Tex\+Parameterf()}{setTexParameterf()}}
{\footnotesize\ttfamily void Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager\+::set\+Tex\+Parameterf (\begin{DoxyParamCaption}\item[{G\+Lenum}]{target,  }\item[{G\+Lenum}]{pname,  }\item[{G\+Lfloat}]{param }\end{DoxyParamCaption})}



Sets a float parameter value per texture target. 


\begin{DoxyParams}{Parameters}
{\em target} & The texture target. \\
\hline
{\em pname} & The parameter name. \\
\hline
{\em param} & The parameter value. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_g_l_e_s2_state_cache_manager_a0524ecd8f9c8a6dfabf0be8ba3bf5f04}\label{class_ogre_1_1_g_l_e_s2_state_cache_manager_a0524ecd8f9c8a6dfabf0be8ba3bf5f04}} 
\index{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}!activate\+G\+L\+Texture\+Unit@{activate\+G\+L\+Texture\+Unit}}
\index{activate\+G\+L\+Texture\+Unit@{activate\+G\+L\+Texture\+Unit}!Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}}
\subsubsection{\texorpdfstring{activate\+G\+L\+Texture\+Unit()}{activateGLTextureUnit()}}
{\footnotesize\ttfamily bool Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager\+::activate\+G\+L\+Texture\+Unit (\begin{DoxyParamCaption}\item[{unsigned char}]{unit }\end{DoxyParamCaption})}



Activate an Open\+GL texture unit. 


\begin{DoxyParams}{Parameters}
{\em unit} & The texture unit to activate. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Whether or not the texture unit was successfully activated. 
\end{DoxyReturn}
\mbox{\Hypertarget{class_ogre_1_1_g_l_e_s2_state_cache_manager_a1805c0b3f759ec5591171c5bfa094535}\label{class_ogre_1_1_g_l_e_s2_state_cache_manager_a1805c0b3f759ec5591171c5bfa094535}} 
\index{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}!set\+Blend\+Equation@{set\+Blend\+Equation}}
\index{set\+Blend\+Equation@{set\+Blend\+Equation}!Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}}
\subsubsection{\texorpdfstring{set\+Blend\+Equation()}{setBlendEquation()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily void Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager\+::set\+Blend\+Equation (\begin{DoxyParamCaption}\item[{G\+Lenum}]{eq }\end{DoxyParamCaption})}



Sets the current blend equation setting. 


\begin{DoxyParams}{Parameters}
{\em eq} & The blend equation to use. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_g_l_e_s2_state_cache_manager_a9bdee66e21113ca21dcb8187705e6bb6}\label{class_ogre_1_1_g_l_e_s2_state_cache_manager_a9bdee66e21113ca21dcb8187705e6bb6}} 
\index{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}!set\+Blend\+Equation@{set\+Blend\+Equation}}
\index{set\+Blend\+Equation@{set\+Blend\+Equation}!Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}}
\subsubsection{\texorpdfstring{set\+Blend\+Equation()}{setBlendEquation()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily void Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager\+::set\+Blend\+Equation (\begin{DoxyParamCaption}\item[{G\+Lenum}]{eq\+R\+GB,  }\item[{G\+Lenum}]{eqA }\end{DoxyParamCaption})}



Set the blend equation for R\+GB and alpha separately. 

\mbox{\Hypertarget{class_ogre_1_1_g_l_e_s2_state_cache_manager_a71bd37c7caace8b9eb84ec527622b43e}\label{class_ogre_1_1_g_l_e_s2_state_cache_manager_a71bd37c7caace8b9eb84ec527622b43e}} 
\index{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}!set\+Blend\+Func@{set\+Blend\+Func}}
\index{set\+Blend\+Func@{set\+Blend\+Func}!Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}}
\subsubsection{\texorpdfstring{set\+Blend\+Func()}{setBlendFunc()}}
{\footnotesize\ttfamily void Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager\+::set\+Blend\+Func (\begin{DoxyParamCaption}\item[{G\+Lenum}]{source,  }\item[{G\+Lenum}]{dest }\end{DoxyParamCaption})}



Sets the blending function. 


\begin{DoxyParams}{Parameters}
{\em source} & The blend mode for the source. \\
\hline
{\em dest} & The blend mode for the destination \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_g_l_e_s2_state_cache_manager_ae0c0afeed7bcede6014921810ba4b861}\label{class_ogre_1_1_g_l_e_s2_state_cache_manager_ae0c0afeed7bcede6014921810ba4b861}} 
\index{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}!set\+Depth\+Mask@{set\+Depth\+Mask}}
\index{set\+Depth\+Mask@{set\+Depth\+Mask}!Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}}
\subsubsection{\texorpdfstring{set\+Depth\+Mask()}{setDepthMask()}}
{\footnotesize\ttfamily void Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager\+::set\+Depth\+Mask (\begin{DoxyParamCaption}\item[{G\+Lboolean}]{mask }\end{DoxyParamCaption})}



Sets the current depth mask setting. 


\begin{DoxyParams}{Parameters}
{\em mask} & The depth mask to use. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_g_l_e_s2_state_cache_manager_ae90ba4b9ff4b2397d8146a32010aed54}\label{class_ogre_1_1_g_l_e_s2_state_cache_manager_ae90ba4b9ff4b2397d8146a32010aed54}} 
\index{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}!set\+Depth\+Func@{set\+Depth\+Func}}
\index{set\+Depth\+Func@{set\+Depth\+Func}!Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}}
\subsubsection{\texorpdfstring{set\+Depth\+Func()}{setDepthFunc()}}
{\footnotesize\ttfamily void Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager\+::set\+Depth\+Func (\begin{DoxyParamCaption}\item[{G\+Lenum}]{func }\end{DoxyParamCaption})}



Sets the current depth test function. 


\begin{DoxyParams}{Parameters}
{\em func} & The depth test function to use. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_g_l_e_s2_state_cache_manager_a2e7b4e0aeea2eb085166854bf0a3c696}\label{class_ogre_1_1_g_l_e_s2_state_cache_manager_a2e7b4e0aeea2eb085166854bf0a3c696}} 
\index{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}!set\+Clear\+Depth@{set\+Clear\+Depth}}
\index{set\+Clear\+Depth@{set\+Clear\+Depth}!Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}}
\subsubsection{\texorpdfstring{set\+Clear\+Depth()}{setClearDepth()}}
{\footnotesize\ttfamily void Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager\+::set\+Clear\+Depth (\begin{DoxyParamCaption}\item[{G\+Lclampf}]{depth }\end{DoxyParamCaption})}



Sets the clear depth in the range from \mbox{[}0..1\mbox{]}. 


\begin{DoxyParams}{Parameters}
{\em depth} & The clear depth to use. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_g_l_e_s2_state_cache_manager_a1138e229ebb22dcb48a653c64b17078c}\label{class_ogre_1_1_g_l_e_s2_state_cache_manager_a1138e229ebb22dcb48a653c64b17078c}} 
\index{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}!set\+Clear\+Colour@{set\+Clear\+Colour}}
\index{set\+Clear\+Colour@{set\+Clear\+Colour}!Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}}
\subsubsection{\texorpdfstring{set\+Clear\+Colour()}{setClearColour()}}
{\footnotesize\ttfamily void Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager\+::set\+Clear\+Colour (\begin{DoxyParamCaption}\item[{G\+Lclampf}]{red,  }\item[{G\+Lclampf}]{green,  }\item[{G\+Lclampf}]{blue,  }\item[{G\+Lclampf}]{alpha }\end{DoxyParamCaption})}



Sets the color to clear to. 


\begin{DoxyParams}{Parameters}
{\em red} & The red component. \\
\hline
{\em green} & The green component. \\
\hline
{\em blue} & The blue component. \\
\hline
{\em alpha} & The alpha component. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_g_l_e_s2_state_cache_manager_a44f7d9d85aaa842214540eb4c8d50eba}\label{class_ogre_1_1_g_l_e_s2_state_cache_manager_a44f7d9d85aaa842214540eb4c8d50eba}} 
\index{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}!set\+Colour\+Mask@{set\+Colour\+Mask}}
\index{set\+Colour\+Mask@{set\+Colour\+Mask}!Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}}
\subsubsection{\texorpdfstring{set\+Colour\+Mask()}{setColourMask()}}
{\footnotesize\ttfamily void Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager\+::set\+Colour\+Mask (\begin{DoxyParamCaption}\item[{G\+Lboolean}]{red,  }\item[{G\+Lboolean}]{green,  }\item[{G\+Lboolean}]{blue,  }\item[{G\+Lboolean}]{alpha }\end{DoxyParamCaption})}



Sets the current colour mask. 


\begin{DoxyParams}{Parameters}
{\em red} & The red component. \\
\hline
{\em green} & The green component. \\
\hline
{\em blue} & The blue component. \\
\hline
{\em alpha} & The alpha component. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_g_l_e_s2_state_cache_manager_a803ae65e306c68d7532c37aeb34bb249}\label{class_ogre_1_1_g_l_e_s2_state_cache_manager_a803ae65e306c68d7532c37aeb34bb249}} 
\index{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}!set\+Stencil\+Mask@{set\+Stencil\+Mask}}
\index{set\+Stencil\+Mask@{set\+Stencil\+Mask}!Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}}
\subsubsection{\texorpdfstring{set\+Stencil\+Mask()}{setStencilMask()}}
{\footnotesize\ttfamily void Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager\+::set\+Stencil\+Mask (\begin{DoxyParamCaption}\item[{G\+Luint}]{mask }\end{DoxyParamCaption})}



Sets the stencil mask. 


\begin{DoxyParams}{Parameters}
{\em mask} & The stencil mask to use \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_g_l_e_s2_state_cache_manager_a63b81c90396183a19f7f88c4cff3ef47}\label{class_ogre_1_1_g_l_e_s2_state_cache_manager_a63b81c90396183a19f7f88c4cff3ef47}} 
\index{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}!set\+Enabled@{set\+Enabled}}
\index{set\+Enabled@{set\+Enabled}!Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}}
\subsubsection{\texorpdfstring{set\+Enabled()}{setEnabled()}}
{\footnotesize\ttfamily void Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager\+::set\+Enabled (\begin{DoxyParamCaption}\item[{G\+Lenum}]{flag }\end{DoxyParamCaption})}



Enables a piece of Open\+GL functionality. 


\begin{DoxyParams}{Parameters}
{\em flag} & The function to enable. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_g_l_e_s2_state_cache_manager_a0d1085a96d5e8e9226a8072b8fe5fb1c}\label{class_ogre_1_1_g_l_e_s2_state_cache_manager_a0d1085a96d5e8e9226a8072b8fe5fb1c}} 
\index{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}!set\+Disabled@{set\+Disabled}}
\index{set\+Disabled@{set\+Disabled}!Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}}
\subsubsection{\texorpdfstring{set\+Disabled()}{setDisabled()}}
{\footnotesize\ttfamily void Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager\+::set\+Disabled (\begin{DoxyParamCaption}\item[{G\+Lenum}]{flag }\end{DoxyParamCaption})}



Disables a piece of Open\+GL functionality. 


\begin{DoxyParams}{Parameters}
{\em flag} & The function to disable. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_g_l_e_s2_state_cache_manager_aab21f70a86de20c8c8eb7379a4b3f693}\label{class_ogre_1_1_g_l_e_s2_state_cache_manager_aab21f70a86de20c8c8eb7379a4b3f693}} 
\index{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}!set\+Cull\+Face@{set\+Cull\+Face}}
\index{set\+Cull\+Face@{set\+Cull\+Face}!Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}}
\subsubsection{\texorpdfstring{set\+Cull\+Face()}{setCullFace()}}
{\footnotesize\ttfamily void Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager\+::set\+Cull\+Face (\begin{DoxyParamCaption}\item[{G\+Lenum}]{face }\end{DoxyParamCaption})}



Sets the face culling setting. 


\begin{DoxyParams}{Parameters}
{\em face} & The face culling mode to use. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_g_l_e_s2_state_cache_manager_aeb6f9e847475e172eaefc950e141da7d}\label{class_ogre_1_1_g_l_e_s2_state_cache_manager_aeb6f9e847475e172eaefc950e141da7d}} 
\index{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}!set\+Viewport@{set\+Viewport}}
\index{set\+Viewport@{set\+Viewport}!Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}}
\subsubsection{\texorpdfstring{set\+Viewport()}{setViewport()}}
{\footnotesize\ttfamily void Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager\+::set\+Viewport (\begin{DoxyParamCaption}\item[{G\+Lint}]{x,  }\item[{G\+Lint}]{y,  }\item[{G\+Lsizei}]{width,  }\item[{G\+Lsizei}]{height }\end{DoxyParamCaption})}

\mbox{\Hypertarget{class_ogre_1_1_g_l_state_cache_manager_common_a8cf8ecd02d3f7d9ecbda6decdabc09d8}\label{class_ogre_1_1_g_l_state_cache_manager_common_a8cf8ecd02d3f7d9ecbda6decdabc09d8}} 
\index{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}!get\+Viewport@{get\+Viewport}}
\index{get\+Viewport@{get\+Viewport}!Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}}
\subsubsection{\texorpdfstring{get\+Viewport()}{getViewport()}}
{\footnotesize\ttfamily void Ogre\+::\+G\+L\+State\+Cache\+Manager\+Common\+::get\+Viewport (\begin{DoxyParamCaption}\item[{int $\ast$}]{array }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [inherited]}}

\mbox{\Hypertarget{class_ogre_1_1_g_l_state_cache_manager_common_aed0a1810279e037e0c7b12f9ffc0c65e}\label{class_ogre_1_1_g_l_state_cache_manager_common_aed0a1810279e037e0c7b12f9ffc0c65e}} 
\index{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}!get\+Colour\+Mask@{get\+Colour\+Mask}}
\index{get\+Colour\+Mask@{get\+Colour\+Mask}!Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}}
\subsubsection{\texorpdfstring{get\+Colour\+Mask()}{getColourMask()}}
{\footnotesize\ttfamily \hyperlink{namespace_ogre_a07f1f7c1d84d58c9beae02e1ebb945e4}{uchar}$\ast$ Ogre\+::\+G\+L\+State\+Cache\+Manager\+Common\+::get\+Colour\+Mask (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [inherited]}}



Gets the current colour mask setting. 

\begin{DoxyReturn}{Returns}
An array containing the mask in R\+G\+BA order. 
\end{DoxyReturn}
\mbox{\Hypertarget{class_ogre_1_1_g_l_state_cache_manager_common_a6176362b2fcb20cccafc9821951778ee}\label{class_ogre_1_1_g_l_state_cache_manager_common_a6176362b2fcb20cccafc9821951778ee}} 
\index{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}!get\+Depth\+Mask@{get\+Depth\+Mask}}
\index{get\+Depth\+Mask@{get\+Depth\+Mask}!Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}}
\subsubsection{\texorpdfstring{get\+Depth\+Mask()}{getDepthMask()}}
{\footnotesize\ttfamily \hyperlink{namespace_ogre_a07f1f7c1d84d58c9beae02e1ebb945e4}{uchar} Ogre\+::\+G\+L\+State\+Cache\+Manager\+Common\+::get\+Depth\+Mask (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [inherited]}}



Gets the current depth mask setting. 

\begin{DoxyReturn}{Returns}
The current depth mask. 
\end{DoxyReturn}
\mbox{\Hypertarget{class_ogre_1_1_g_l_state_cache_manager_common_a01d78d20763464f69a157b0c81ba454f}\label{class_ogre_1_1_g_l_state_cache_manager_common_a01d78d20763464f69a157b0c81ba454f}} 
\index{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}!get\+Stencil\+Mask@{get\+Stencil\+Mask}}
\index{get\+Stencil\+Mask@{get\+Stencil\+Mask}!Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager@{Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager}}
\subsubsection{\texorpdfstring{get\+Stencil\+Mask()}{getStencilMask()}}
{\footnotesize\ttfamily \hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32} Ogre\+::\+G\+L\+State\+Cache\+Manager\+Common\+::get\+Stencil\+Mask (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [inherited]}}



Gets the current stencil mask. 

\begin{DoxyReturn}{Returns}
The stencil mask. 
\end{DoxyReturn}


The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
\hyperlink{_ogre_g_l_e_s2_state_cache_manager_8h}{Ogre\+G\+L\+E\+S2\+State\+Cache\+Manager.\+h}\end{DoxyCompactItemize}
