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


{\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=255pt]{class_ogre_1_1_g_l_e_s2_state_cache_manager__inherit__graph}
\end{center}
\end{figure}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_ogre_1_1_g_l_e_s2_state_cache_manager_ad313859f1581b5f8dca222a145036d43}{G\+L\+E\+S2\+State\+Cache\+Manager}} (void)
\item 
bool \mbox{\hyperlink{class_ogre_1_1_g_l_e_s2_state_cache_manager_a39aa11ca29cd0ce41821a224f611849c}{activate\+G\+L\+Texture\+Unit}} (size\+\_\+t unit)
\begin{DoxyCompactList}\small\item\em Activate an Open\+GL texture unit. \end{DoxyCompactList}\item 
void \mbox{\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 \mbox{\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 \mbox{\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 \mbox{\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 \mbox{\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 
\mbox{\hyperlink{namespace_ogre_a07f1f7c1d84d58c9beae02e1ebb945e4}{uchar}} $\ast$ \mbox{\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 
\mbox{\hyperlink{namespace_ogre_a07f1f7c1d84d58c9beae02e1ebb945e4}{uchar}} \mbox{\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 
\mbox{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}} \mbox{\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 \mbox{\hyperlink{class_ogre_1_1_g_l_state_cache_manager_common_a8cf8ecd02d3f7d9ecbda6decdabc09d8}{get\+Viewport}} (int $\ast$array)
\item 
void \mbox{\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 \mbox{\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 \mbox{\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 \mbox{\hyperlink{class_ogre_1_1_g_l_e_s2_state_cache_manager_a1c8b09394e212fb84fc4c56b435ebcb3}{set\+Blend\+Func}} (G\+Lenum source, G\+Lenum dest, G\+Lenum sourceA, G\+Lenum destA)
\begin{DoxyCompactList}\small\item\em Set the blend function for R\+GB and alpha separately. \end{DoxyCompactList}\item 
void \mbox{\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 \mbox{\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 \mbox{\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 \mbox{\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 \mbox{\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 \mbox{\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 \mbox{\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 \mbox{\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 \mbox{\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 \mbox{\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 \mbox{\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 \mbox{\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}


\doxysubsection{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::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}!GLES2StateCacheManager@{GLES2StateCacheManager}}
\index{GLES2StateCacheManager@{GLES2StateCacheManager}!Ogre::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}}
\doxysubsubsection{\texorpdfstring{GLES2StateCacheManager()}{GLES2StateCacheManager()}}
{\footnotesize\ttfamily Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager\+::\+G\+L\+E\+S2\+State\+Cache\+Manager (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



\doxysubsection{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::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}!initializeCache@{initializeCache}}
\index{initializeCache@{initializeCache}!Ogre::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}}
\doxysubsubsection{\texorpdfstring{initializeCache()}{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::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}!clearCache@{clearCache}}
\index{clearCache@{clearCache}!Ogre::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}}
\doxysubsubsection{\texorpdfstring{clearCache()}{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::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}!bindGLBuffer@{bindGLBuffer}}
\index{bindGLBuffer@{bindGLBuffer}!Ogre::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}}
\doxysubsubsection{\texorpdfstring{bindGLBuffer()}{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::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}!deleteGLBuffer@{deleteGLBuffer}}
\index{deleteGLBuffer@{deleteGLBuffer}!Ogre::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}}
\doxysubsubsection{\texorpdfstring{deleteGLBuffer()}{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::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}!bindGLVertexArray@{bindGLVertexArray}}
\index{bindGLVertexArray@{bindGLVertexArray}!Ogre::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}}
\doxysubsubsection{\texorpdfstring{bindGLVertexArray()}{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::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}!bindGLTexture@{bindGLTexture}}
\index{bindGLTexture@{bindGLTexture}!Ogre::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}}
\doxysubsubsection{\texorpdfstring{bindGLTexture()}{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::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}!invalidateStateForTexture@{invalidateStateForTexture}}
\index{invalidateStateForTexture@{invalidateStateForTexture}!Ogre::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}}
\doxysubsubsection{\texorpdfstring{invalidateStateForTexture()}{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::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}!setTexParameteri@{setTexParameteri}}
\index{setTexParameteri@{setTexParameteri}!Ogre::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}}
\doxysubsubsection{\texorpdfstring{setTexParameteri()}{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::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}!setTexParameterf@{setTexParameterf}}
\index{setTexParameterf@{setTexParameterf}!Ogre::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}}
\doxysubsubsection{\texorpdfstring{setTexParameterf()}{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_a39aa11ca29cd0ce41821a224f611849c}\label{class_ogre_1_1_g_l_e_s2_state_cache_manager_a39aa11ca29cd0ce41821a224f611849c}} 
\index{Ogre::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}!activateGLTextureUnit@{activateGLTextureUnit}}
\index{activateGLTextureUnit@{activateGLTextureUnit}!Ogre::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}}
\doxysubsubsection{\texorpdfstring{activateGLTextureUnit()}{activateGLTextureUnit()}}
{\footnotesize\ttfamily bool Ogre\+::\+G\+L\+E\+S2\+State\+Cache\+Manager\+::activate\+G\+L\+Texture\+Unit (\begin{DoxyParamCaption}\item[{size\+\_\+t}]{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_a9bdee66e21113ca21dcb8187705e6bb6}\label{class_ogre_1_1_g_l_e_s2_state_cache_manager_a9bdee66e21113ca21dcb8187705e6bb6}} 
\index{Ogre::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}!setBlendEquation@{setBlendEquation}}
\index{setBlendEquation@{setBlendEquation}!Ogre::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}}
\doxysubsubsection{\texorpdfstring{setBlendEquation()}{setBlendEquation()}}
{\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_a1c8b09394e212fb84fc4c56b435ebcb3}\label{class_ogre_1_1_g_l_e_s2_state_cache_manager_a1c8b09394e212fb84fc4c56b435ebcb3}} 
\index{Ogre::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}!setBlendFunc@{setBlendFunc}}
\index{setBlendFunc@{setBlendFunc}!Ogre::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}}
\doxysubsubsection{\texorpdfstring{setBlendFunc()}{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,  }\item[{G\+Lenum}]{sourceA,  }\item[{G\+Lenum}]{destA }\end{DoxyParamCaption})}



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

\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::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}!setDepthMask@{setDepthMask}}
\index{setDepthMask@{setDepthMask}!Ogre::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}}
\doxysubsubsection{\texorpdfstring{setDepthMask()}{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::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}!setDepthFunc@{setDepthFunc}}
\index{setDepthFunc@{setDepthFunc}!Ogre::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}}
\doxysubsubsection{\texorpdfstring{setDepthFunc()}{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::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}!setClearDepth@{setClearDepth}}
\index{setClearDepth@{setClearDepth}!Ogre::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}}
\doxysubsubsection{\texorpdfstring{setClearDepth()}{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::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}!setClearColour@{setClearColour}}
\index{setClearColour@{setClearColour}!Ogre::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}}
\doxysubsubsection{\texorpdfstring{setClearColour()}{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::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}!setColourMask@{setColourMask}}
\index{setColourMask@{setColourMask}!Ogre::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}}
\doxysubsubsection{\texorpdfstring{setColourMask()}{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::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}!setStencilMask@{setStencilMask}}
\index{setStencilMask@{setStencilMask}!Ogre::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}}
\doxysubsubsection{\texorpdfstring{setStencilMask()}{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::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}!setEnabled@{setEnabled}}
\index{setEnabled@{setEnabled}!Ogre::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}}
\doxysubsubsection{\texorpdfstring{setEnabled()}{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::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}!setDisabled@{setDisabled}}
\index{setDisabled@{setDisabled}!Ogre::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}}
\doxysubsubsection{\texorpdfstring{setDisabled()}{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::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}!setCullFace@{setCullFace}}
\index{setCullFace@{setCullFace}!Ogre::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}}
\doxysubsubsection{\texorpdfstring{setCullFace()}{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::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}!setViewport@{setViewport}}
\index{setViewport@{setViewport}!Ogre::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}}
\doxysubsubsection{\texorpdfstring{setViewport()}{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::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}!getViewport@{getViewport}}
\index{getViewport@{getViewport}!Ogre::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}}
\doxysubsubsection{\texorpdfstring{getViewport()}{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::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}!getColourMask@{getColourMask}}
\index{getColourMask@{getColourMask}!Ogre::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}}
\doxysubsubsection{\texorpdfstring{getColourMask()}{getColourMask()}}
{\footnotesize\ttfamily \mbox{\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::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}!getDepthMask@{getDepthMask}}
\index{getDepthMask@{getDepthMask}!Ogre::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}}
\doxysubsubsection{\texorpdfstring{getDepthMask()}{getDepthMask()}}
{\footnotesize\ttfamily \mbox{\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::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}!getStencilMask@{getStencilMask}}
\index{getStencilMask@{getStencilMask}!Ogre::GLES2StateCacheManager@{Ogre::GLES2StateCacheManager}}
\doxysubsubsection{\texorpdfstring{getStencilMask()}{getStencilMask()}}
{\footnotesize\ttfamily \mbox{\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 
\mbox{\hyperlink{_ogre_g_l_e_s2_state_cache_manager_8h}{Ogre\+G\+L\+E\+S2\+State\+Cache\+Manager.\+h}}\end{DoxyCompactItemize}
