\hypertarget{class_ogre_1_1_layer_blend_mode_ex}{}\section{Ogre\+:\+:Layer\+Blend\+Mode\+Ex Class Reference}
\label{class_ogre_1_1_layer_blend_mode_ex}\index{Ogre\+::\+Layer\+Blend\+Mode\+Ex@{Ogre\+::\+Layer\+Blend\+Mode\+Ex}}


Class which manages blending of both colour and alpha components.  




{\ttfamily \#include $<$Ogre\+Blend\+Mode.\+h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
bool \hyperlink{class_ogre_1_1_layer_blend_mode_ex_a92074f86847e7e5c065bd94498396ade}{operator!=} (const \hyperlink{class_ogre_1_1_layer_blend_mode_ex}{Layer\+Blend\+Mode\+Ex} \&rhs) const
\item 
bool \hyperlink{class_ogre_1_1_layer_blend_mode_ex_a1a5c33d25313f28b75fe67903766b5fe}{operator==} (const \hyperlink{class_ogre_1_1_layer_blend_mode_ex}{Layer\+Blend\+Mode\+Ex} \&rhs) const
\end{DoxyCompactItemize}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} \hyperlink{class_ogre_1_1_layer_blend_mode_ex_a8af3aad5d2de939d0d9bff3049c82928}{alpha\+Arg1}
\begin{DoxyCompactList}\small\item\em Manual alpha value for manual source1. \end{DoxyCompactList}\item 
\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} \hyperlink{class_ogre_1_1_layer_blend_mode_ex_a9dde2b63904e61319b175094f8fc67f0}{alpha\+Arg2}
\begin{DoxyCompactList}\small\item\em Manual alpha value for manual source2. \end{DoxyCompactList}\item 
\hyperlink{group___materials_ga1ae5925d36df27a6c3590536752264f8}{Layer\+Blend\+Type} \hyperlink{class_ogre_1_1_layer_blend_mode_ex_ac2cb8de7b805400726882f7003a4bcda}{blend\+Type}
\begin{DoxyCompactList}\small\item\em The type of blending (colour or alpha) \end{DoxyCompactList}\item 
\hyperlink{class_ogre_1_1_colour_value}{Colour\+Value} \hyperlink{class_ogre_1_1_layer_blend_mode_ex_a99adb8004759bf3825d934684ab8f171}{colour\+Arg1}
\begin{DoxyCompactList}\small\item\em Manual colour value for manual source1. \end{DoxyCompactList}\item 
\hyperlink{class_ogre_1_1_colour_value}{Colour\+Value} \hyperlink{class_ogre_1_1_layer_blend_mode_ex_a6bd40927e40bcb2d6c4e077ebd56c24d}{colour\+Arg2}
\begin{DoxyCompactList}\small\item\em Manual colour value for manual source2. \end{DoxyCompactList}\item 
\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} \hyperlink{class_ogre_1_1_layer_blend_mode_ex_a71cee0ade264a82051913d5eb0fc4c40}{factor}
\begin{DoxyCompactList}\small\item\em Manual blending factor. \end{DoxyCompactList}\item 
\hyperlink{group___materials_ga264ecab38a04d01e2c3158fa05ec1ee2}{Layer\+Blend\+Operation\+Ex} \hyperlink{class_ogre_1_1_layer_blend_mode_ex_afc151f1c17683cd99df776459df2c778}{operation}
\begin{DoxyCompactList}\small\item\em The operation to be applied. \end{DoxyCompactList}\item 
\hyperlink{group___materials_gae2ad78de344f35307ce35157c175625e}{Layer\+Blend\+Source} \hyperlink{class_ogre_1_1_layer_blend_mode_ex_a334818129ca44c1fbdba2b3b2813368a}{source1}
\begin{DoxyCompactList}\small\item\em The first source of colour/alpha. \end{DoxyCompactList}\item 
\hyperlink{group___materials_gae2ad78de344f35307ce35157c175625e}{Layer\+Blend\+Source} \hyperlink{class_ogre_1_1_layer_blend_mode_ex_a94eeae80ba84e9aa5271d317d48f2688}{source2}
\begin{DoxyCompactList}\small\item\em The second source of colour/alpha. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Class which manages blending of both colour and alpha components. 

\begin{DoxyRemark}{Remarks}
This class is a utility class used by both \hyperlink{class_ogre_1_1_texture_unit_state}{Texture\+Unit\+State} and \hyperlink{class_ogre_1_1_render_system}{Render\+System} to wrap up the details of a blending operation. This blending operation could be used for blending colour or alpha in a texture layer. This class is really only for use by O\+G\+RE, since apps can deal with blending modes through the \hyperlink{class_ogre_1_1_texture_unit_state}{Texture\+Unit\+State} class methods set\+Colour\+Operation and set\+Alpha\+Operation. 
\end{DoxyRemark}
\begin{DoxyParagraph}{}
It\textquotesingle{}s worth noting that these operations are for blending {\itshape between texture layers} and not between rendered objects and the existing scene. If you wish to make an object blend with others in the scene, e.\+g. to make transparent objects etc, use the \hyperlink{class_ogre_1_1_material_a8c9ccac6e60241a1865ac211e3b203c8}{Material\+::set\+Scene\+Blending} method. 
\end{DoxyParagraph}


\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_layer_blend_mode_ex_a1a5c33d25313f28b75fe67903766b5fe}\label{class_ogre_1_1_layer_blend_mode_ex_a1a5c33d25313f28b75fe67903766b5fe}} 
\index{Ogre\+::\+Layer\+Blend\+Mode\+Ex@{Ogre\+::\+Layer\+Blend\+Mode\+Ex}!operator==@{operator==}}
\index{operator==@{operator==}!Ogre\+::\+Layer\+Blend\+Mode\+Ex@{Ogre\+::\+Layer\+Blend\+Mode\+Ex}}
\subsubsection{\texorpdfstring{operator==()}{operator==()}}
{\footnotesize\ttfamily bool Ogre\+::\+Layer\+Blend\+Mode\+Ex\+::operator== (\begin{DoxyParamCaption}\item[{const \hyperlink{class_ogre_1_1_layer_blend_mode_ex}{Layer\+Blend\+Mode\+Ex} \&}]{rhs }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



References alpha\+Arg1, alpha\+Arg2, blend\+Type, colour\+Arg1, colour\+Arg2, factor, Ogre\+::\+L\+B\+T\+\_\+\+C\+O\+L\+O\+UR, operation, source1, and source2.

\mbox{\Hypertarget{class_ogre_1_1_layer_blend_mode_ex_a92074f86847e7e5c065bd94498396ade}\label{class_ogre_1_1_layer_blend_mode_ex_a92074f86847e7e5c065bd94498396ade}} 
\index{Ogre\+::\+Layer\+Blend\+Mode\+Ex@{Ogre\+::\+Layer\+Blend\+Mode\+Ex}!operator"!=@{operator"!=}}
\index{operator"!=@{operator"!=}!Ogre\+::\+Layer\+Blend\+Mode\+Ex@{Ogre\+::\+Layer\+Blend\+Mode\+Ex}}
\subsubsection{\texorpdfstring{operator"!=()}{operator!=()}}
{\footnotesize\ttfamily bool Ogre\+::\+Layer\+Blend\+Mode\+Ex\+::operator!= (\begin{DoxyParamCaption}\item[{const \hyperlink{class_ogre_1_1_layer_blend_mode_ex}{Layer\+Blend\+Mode\+Ex} \&}]{rhs }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



\subsection{Member Data Documentation}
\mbox{\Hypertarget{class_ogre_1_1_layer_blend_mode_ex_ac2cb8de7b805400726882f7003a4bcda}\label{class_ogre_1_1_layer_blend_mode_ex_ac2cb8de7b805400726882f7003a4bcda}} 
\index{Ogre\+::\+Layer\+Blend\+Mode\+Ex@{Ogre\+::\+Layer\+Blend\+Mode\+Ex}!blend\+Type@{blend\+Type}}
\index{blend\+Type@{blend\+Type}!Ogre\+::\+Layer\+Blend\+Mode\+Ex@{Ogre\+::\+Layer\+Blend\+Mode\+Ex}}
\subsubsection{\texorpdfstring{blend\+Type}{blendType}}
{\footnotesize\ttfamily \hyperlink{group___materials_ga1ae5925d36df27a6c3590536752264f8}{Layer\+Blend\+Type} Ogre\+::\+Layer\+Blend\+Mode\+Ex\+::blend\+Type}



The type of blending (colour or alpha) 



Referenced by operator==().

\mbox{\Hypertarget{class_ogre_1_1_layer_blend_mode_ex_afc151f1c17683cd99df776459df2c778}\label{class_ogre_1_1_layer_blend_mode_ex_afc151f1c17683cd99df776459df2c778}} 
\index{Ogre\+::\+Layer\+Blend\+Mode\+Ex@{Ogre\+::\+Layer\+Blend\+Mode\+Ex}!operation@{operation}}
\index{operation@{operation}!Ogre\+::\+Layer\+Blend\+Mode\+Ex@{Ogre\+::\+Layer\+Blend\+Mode\+Ex}}
\subsubsection{\texorpdfstring{operation}{operation}}
{\footnotesize\ttfamily \hyperlink{group___materials_ga264ecab38a04d01e2c3158fa05ec1ee2}{Layer\+Blend\+Operation\+Ex} Ogre\+::\+Layer\+Blend\+Mode\+Ex\+::operation}



The operation to be applied. 



Referenced by operator==().

\mbox{\Hypertarget{class_ogre_1_1_layer_blend_mode_ex_a334818129ca44c1fbdba2b3b2813368a}\label{class_ogre_1_1_layer_blend_mode_ex_a334818129ca44c1fbdba2b3b2813368a}} 
\index{Ogre\+::\+Layer\+Blend\+Mode\+Ex@{Ogre\+::\+Layer\+Blend\+Mode\+Ex}!source1@{source1}}
\index{source1@{source1}!Ogre\+::\+Layer\+Blend\+Mode\+Ex@{Ogre\+::\+Layer\+Blend\+Mode\+Ex}}
\subsubsection{\texorpdfstring{source1}{source1}}
{\footnotesize\ttfamily \hyperlink{group___materials_gae2ad78de344f35307ce35157c175625e}{Layer\+Blend\+Source} Ogre\+::\+Layer\+Blend\+Mode\+Ex\+::source1}



The first source of colour/alpha. 



Referenced by operator==().

\mbox{\Hypertarget{class_ogre_1_1_layer_blend_mode_ex_a94eeae80ba84e9aa5271d317d48f2688}\label{class_ogre_1_1_layer_blend_mode_ex_a94eeae80ba84e9aa5271d317d48f2688}} 
\index{Ogre\+::\+Layer\+Blend\+Mode\+Ex@{Ogre\+::\+Layer\+Blend\+Mode\+Ex}!source2@{source2}}
\index{source2@{source2}!Ogre\+::\+Layer\+Blend\+Mode\+Ex@{Ogre\+::\+Layer\+Blend\+Mode\+Ex}}
\subsubsection{\texorpdfstring{source2}{source2}}
{\footnotesize\ttfamily \hyperlink{group___materials_gae2ad78de344f35307ce35157c175625e}{Layer\+Blend\+Source} Ogre\+::\+Layer\+Blend\+Mode\+Ex\+::source2}



The second source of colour/alpha. 



Referenced by operator==().

\mbox{\Hypertarget{class_ogre_1_1_layer_blend_mode_ex_a99adb8004759bf3825d934684ab8f171}\label{class_ogre_1_1_layer_blend_mode_ex_a99adb8004759bf3825d934684ab8f171}} 
\index{Ogre\+::\+Layer\+Blend\+Mode\+Ex@{Ogre\+::\+Layer\+Blend\+Mode\+Ex}!colour\+Arg1@{colour\+Arg1}}
\index{colour\+Arg1@{colour\+Arg1}!Ogre\+::\+Layer\+Blend\+Mode\+Ex@{Ogre\+::\+Layer\+Blend\+Mode\+Ex}}
\subsubsection{\texorpdfstring{colour\+Arg1}{colourArg1}}
{\footnotesize\ttfamily \hyperlink{class_ogre_1_1_colour_value}{Colour\+Value} Ogre\+::\+Layer\+Blend\+Mode\+Ex\+::colour\+Arg1}



Manual colour value for manual source1. 



Referenced by operator==().

\mbox{\Hypertarget{class_ogre_1_1_layer_blend_mode_ex_a6bd40927e40bcb2d6c4e077ebd56c24d}\label{class_ogre_1_1_layer_blend_mode_ex_a6bd40927e40bcb2d6c4e077ebd56c24d}} 
\index{Ogre\+::\+Layer\+Blend\+Mode\+Ex@{Ogre\+::\+Layer\+Blend\+Mode\+Ex}!colour\+Arg2@{colour\+Arg2}}
\index{colour\+Arg2@{colour\+Arg2}!Ogre\+::\+Layer\+Blend\+Mode\+Ex@{Ogre\+::\+Layer\+Blend\+Mode\+Ex}}
\subsubsection{\texorpdfstring{colour\+Arg2}{colourArg2}}
{\footnotesize\ttfamily \hyperlink{class_ogre_1_1_colour_value}{Colour\+Value} Ogre\+::\+Layer\+Blend\+Mode\+Ex\+::colour\+Arg2}



Manual colour value for manual source2. 



Referenced by operator==().

\mbox{\Hypertarget{class_ogre_1_1_layer_blend_mode_ex_a8af3aad5d2de939d0d9bff3049c82928}\label{class_ogre_1_1_layer_blend_mode_ex_a8af3aad5d2de939d0d9bff3049c82928}} 
\index{Ogre\+::\+Layer\+Blend\+Mode\+Ex@{Ogre\+::\+Layer\+Blend\+Mode\+Ex}!alpha\+Arg1@{alpha\+Arg1}}
\index{alpha\+Arg1@{alpha\+Arg1}!Ogre\+::\+Layer\+Blend\+Mode\+Ex@{Ogre\+::\+Layer\+Blend\+Mode\+Ex}}
\subsubsection{\texorpdfstring{alpha\+Arg1}{alphaArg1}}
{\footnotesize\ttfamily \hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} Ogre\+::\+Layer\+Blend\+Mode\+Ex\+::alpha\+Arg1}



Manual alpha value for manual source1. 



Referenced by operator==().

\mbox{\Hypertarget{class_ogre_1_1_layer_blend_mode_ex_a9dde2b63904e61319b175094f8fc67f0}\label{class_ogre_1_1_layer_blend_mode_ex_a9dde2b63904e61319b175094f8fc67f0}} 
\index{Ogre\+::\+Layer\+Blend\+Mode\+Ex@{Ogre\+::\+Layer\+Blend\+Mode\+Ex}!alpha\+Arg2@{alpha\+Arg2}}
\index{alpha\+Arg2@{alpha\+Arg2}!Ogre\+::\+Layer\+Blend\+Mode\+Ex@{Ogre\+::\+Layer\+Blend\+Mode\+Ex}}
\subsubsection{\texorpdfstring{alpha\+Arg2}{alphaArg2}}
{\footnotesize\ttfamily \hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} Ogre\+::\+Layer\+Blend\+Mode\+Ex\+::alpha\+Arg2}



Manual alpha value for manual source2. 



Referenced by operator==().

\mbox{\Hypertarget{class_ogre_1_1_layer_blend_mode_ex_a71cee0ade264a82051913d5eb0fc4c40}\label{class_ogre_1_1_layer_blend_mode_ex_a71cee0ade264a82051913d5eb0fc4c40}} 
\index{Ogre\+::\+Layer\+Blend\+Mode\+Ex@{Ogre\+::\+Layer\+Blend\+Mode\+Ex}!factor@{factor}}
\index{factor@{factor}!Ogre\+::\+Layer\+Blend\+Mode\+Ex@{Ogre\+::\+Layer\+Blend\+Mode\+Ex}}
\subsubsection{\texorpdfstring{factor}{factor}}
{\footnotesize\ttfamily \hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} Ogre\+::\+Layer\+Blend\+Mode\+Ex\+::factor}



Manual blending factor. 



Referenced by operator==().



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
\hyperlink{_ogre_blend_mode_8h}{Ogre\+Blend\+Mode.\+h}\end{DoxyCompactItemize}
