\hypertarget{struct_ogre_1_1_colour_blend_state}{}\doxysection{Ogre\+::Colour\+Blend\+State Struct Reference}
\label{struct_ogre_1_1_colour_blend_state}\index{Ogre::ColourBlendState@{Ogre::ColourBlendState}}


Describes the global blending factors for combining subsequent renders with the existing frame contents.  




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

\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{struct_ogre_1_1_colour_blend_state_a297efc16bd85050690f5de4c992a308b}{Colour\+Blend\+State}} ()
\item 
bool \mbox{\hyperlink{struct_ogre_1_1_colour_blend_state_acd678d61988d495ed316cd33fbf272fb}{blending\+Enabled}} () const
\begin{DoxyCompactList}\small\item\em can we simply overwrite the existing pixels or do we have to blend \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{group___materials_gaa7a12a72231aedf6e33d58aafc11214a}{Scene\+Blend\+Operation}} \mbox{\hyperlink{struct_ogre_1_1_colour_blend_state_a137130fbfd568631e517597aeebf1c03}{alpha\+Operation}}
\begin{DoxyCompactList}\small\item\em The blend operation mode for combining alpha values. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group___materials_ga41c76d419d6c9c205a6c1d3b42872213}{Scene\+Blend\+Factor}} \mbox{\hyperlink{struct_ogre_1_1_colour_blend_state_a2a86317b4a9efb0c6b4f3f8fe9ff0fbf}{dest\+Factor}}
\begin{DoxyCompactList}\small\item\em multiplied by the frame colour components \end{DoxyCompactList}\item 
\mbox{\hyperlink{group___materials_ga41c76d419d6c9c205a6c1d3b42872213}{Scene\+Blend\+Factor}} \mbox{\hyperlink{struct_ogre_1_1_colour_blend_state_a6efce17376a11ea819d298d22580ea6b}{dest\+Factor\+Alpha}}
\begin{DoxyCompactList}\small\item\em multiplied by the frame alpha components \end{DoxyCompactList}\item 
\mbox{\hyperlink{group___materials_gaa7a12a72231aedf6e33d58aafc11214a}{Scene\+Blend\+Operation}} \mbox{\hyperlink{struct_ogre_1_1_colour_blend_state_a1a8d5d6033ad996dfadaafdad151e25d}{operation}}
\begin{DoxyCompactList}\small\item\em The blend operation mode for combining colour values. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group___materials_ga41c76d419d6c9c205a6c1d3b42872213}{Scene\+Blend\+Factor}} \mbox{\hyperlink{struct_ogre_1_1_colour_blend_state_afcd73a71641f8bb2befcf147fd8bd982}{source\+Factor}}
\begin{DoxyCompactList}\small\item\em multiplied by the render colour components \end{DoxyCompactList}\item 
\mbox{\hyperlink{group___materials_ga41c76d419d6c9c205a6c1d3b42872213}{Scene\+Blend\+Factor}} \mbox{\hyperlink{struct_ogre_1_1_colour_blend_state_a4c9669f21aa6a880dac5b5380310e6b0}{source\+Factor\+Alpha}}
\begin{DoxyCompactList}\small\item\em multiplied by the render alpha components \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{struct_ogre_1_1_colour_blend_state_abcd09bd7450bb6acff82033ca357712e}{writeA}}\+: 1
\item 
bool \mbox{\hyperlink{struct_ogre_1_1_colour_blend_state_a782495abb2834f7a5c3585707392c7cb}{writeB}}\+: 1
\item 
bool \mbox{\hyperlink{struct_ogre_1_1_colour_blend_state_a32b83f3be2641efbf6567b7d5aef22be}{writeG}}\+: 1
\item 
bool \mbox{\hyperlink{struct_ogre_1_1_colour_blend_state_a13e2c27dc6e21b80f1889d3b99682b16}{writeR}}\+: 1
\begin{DoxyCompactList}\small\item\em Whether writing is enabled for each of the 4 colour channels. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Describes the global blending factors for combining subsequent renders with the existing frame contents. 

By default the operation is \mbox{\hyperlink{group___materials_ggaa7a12a72231aedf6e33d58aafc11214aa188aee58620b3275f1a45c7c80df4bc7}{Ogre\+::\+S\+B\+O\+\_\+\+A\+DD}}, which creates this equation

\$\$final = (pass\+Output $\ast$ source\+Factor) + (frame\+Buffer $\ast$ dest\+Factor)\$\$

Each of the factors is specified as one of \mbox{\hyperlink{group___materials_ga41c76d419d6c9c205a6c1d3b42872213}{Ogre\+::\+Scene\+Blend\+Factor}}.

By setting a different \mbox{\hyperlink{group___materials_gaa7a12a72231aedf6e33d58aafc11214a}{Ogre\+::\+Scene\+Blend\+Operation}} you can achieve a different effect. 

\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{struct_ogre_1_1_colour_blend_state_a297efc16bd85050690f5de4c992a308b}\label{struct_ogre_1_1_colour_blend_state_a297efc16bd85050690f5de4c992a308b}} 
\index{Ogre::ColourBlendState@{Ogre::ColourBlendState}!ColourBlendState@{ColourBlendState}}
\index{ColourBlendState@{ColourBlendState}!Ogre::ColourBlendState@{Ogre::ColourBlendState}}
\doxysubsubsection{\texorpdfstring{ColourBlendState()}{ColourBlendState()}}
{\footnotesize\ttfamily Ogre\+::\+Colour\+Blend\+State\+::\+Colour\+Blend\+State (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{struct_ogre_1_1_colour_blend_state_acd678d61988d495ed316cd33fbf272fb}\label{struct_ogre_1_1_colour_blend_state_acd678d61988d495ed316cd33fbf272fb}} 
\index{Ogre::ColourBlendState@{Ogre::ColourBlendState}!blendingEnabled@{blendingEnabled}}
\index{blendingEnabled@{blendingEnabled}!Ogre::ColourBlendState@{Ogre::ColourBlendState}}
\doxysubsubsection{\texorpdfstring{blendingEnabled()}{blendingEnabled()}}
{\footnotesize\ttfamily bool Ogre\+::\+Colour\+Blend\+State\+::blending\+Enabled (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



can we simply overwrite the existing pixels or do we have to blend 



References Ogre\+::\+S\+B\+F\+\_\+\+O\+NE, and Ogre\+::\+S\+B\+F\+\_\+\+Z\+E\+RO.



\doxysubsection{Member Data Documentation}
\mbox{\Hypertarget{struct_ogre_1_1_colour_blend_state_a13e2c27dc6e21b80f1889d3b99682b16}\label{struct_ogre_1_1_colour_blend_state_a13e2c27dc6e21b80f1889d3b99682b16}} 
\index{Ogre::ColourBlendState@{Ogre::ColourBlendState}!writeR@{writeR}}
\index{writeR@{writeR}!Ogre::ColourBlendState@{Ogre::ColourBlendState}}
\doxysubsubsection{\texorpdfstring{writeR}{writeR}}
{\footnotesize\ttfamily bool Ogre\+::\+Colour\+Blend\+State\+::writeR}



Whether writing is enabled for each of the 4 colour channels. 



Referenced by Ogre\+::\+Render\+System\+::set\+Colour\+Blend\+State().

\mbox{\Hypertarget{struct_ogre_1_1_colour_blend_state_a32b83f3be2641efbf6567b7d5aef22be}\label{struct_ogre_1_1_colour_blend_state_a32b83f3be2641efbf6567b7d5aef22be}} 
\index{Ogre::ColourBlendState@{Ogre::ColourBlendState}!writeG@{writeG}}
\index{writeG@{writeG}!Ogre::ColourBlendState@{Ogre::ColourBlendState}}
\doxysubsubsection{\texorpdfstring{writeG}{writeG}}
{\footnotesize\ttfamily bool Ogre\+::\+Colour\+Blend\+State\+::writeG}



Referenced by Ogre\+::\+Render\+System\+::set\+Colour\+Blend\+State().

\mbox{\Hypertarget{struct_ogre_1_1_colour_blend_state_a782495abb2834f7a5c3585707392c7cb}\label{struct_ogre_1_1_colour_blend_state_a782495abb2834f7a5c3585707392c7cb}} 
\index{Ogre::ColourBlendState@{Ogre::ColourBlendState}!writeB@{writeB}}
\index{writeB@{writeB}!Ogre::ColourBlendState@{Ogre::ColourBlendState}}
\doxysubsubsection{\texorpdfstring{writeB}{writeB}}
{\footnotesize\ttfamily bool Ogre\+::\+Colour\+Blend\+State\+::writeB}



Referenced by Ogre\+::\+Render\+System\+::set\+Colour\+Blend\+State().

\mbox{\Hypertarget{struct_ogre_1_1_colour_blend_state_abcd09bd7450bb6acff82033ca357712e}\label{struct_ogre_1_1_colour_blend_state_abcd09bd7450bb6acff82033ca357712e}} 
\index{Ogre::ColourBlendState@{Ogre::ColourBlendState}!writeA@{writeA}}
\index{writeA@{writeA}!Ogre::ColourBlendState@{Ogre::ColourBlendState}}
\doxysubsubsection{\texorpdfstring{writeA}{writeA}}
{\footnotesize\ttfamily bool Ogre\+::\+Colour\+Blend\+State\+::writeA}



Referenced by Ogre\+::\+Render\+System\+::set\+Colour\+Blend\+State().

\mbox{\Hypertarget{struct_ogre_1_1_colour_blend_state_afcd73a71641f8bb2befcf147fd8bd982}\label{struct_ogre_1_1_colour_blend_state_afcd73a71641f8bb2befcf147fd8bd982}} 
\index{Ogre::ColourBlendState@{Ogre::ColourBlendState}!sourceFactor@{sourceFactor}}
\index{sourceFactor@{sourceFactor}!Ogre::ColourBlendState@{Ogre::ColourBlendState}}
\doxysubsubsection{\texorpdfstring{sourceFactor}{sourceFactor}}
{\footnotesize\ttfamily \mbox{\hyperlink{group___materials_ga41c76d419d6c9c205a6c1d3b42872213}{Scene\+Blend\+Factor}} Ogre\+::\+Colour\+Blend\+State\+::source\+Factor}



multiplied by the render colour components 



Referenced by Ogre\+::\+Render\+System\+::set\+Colour\+Blend\+State().

\mbox{\Hypertarget{struct_ogre_1_1_colour_blend_state_a2a86317b4a9efb0c6b4f3f8fe9ff0fbf}\label{struct_ogre_1_1_colour_blend_state_a2a86317b4a9efb0c6b4f3f8fe9ff0fbf}} 
\index{Ogre::ColourBlendState@{Ogre::ColourBlendState}!destFactor@{destFactor}}
\index{destFactor@{destFactor}!Ogre::ColourBlendState@{Ogre::ColourBlendState}}
\doxysubsubsection{\texorpdfstring{destFactor}{destFactor}}
{\footnotesize\ttfamily \mbox{\hyperlink{group___materials_ga41c76d419d6c9c205a6c1d3b42872213}{Scene\+Blend\+Factor}} Ogre\+::\+Colour\+Blend\+State\+::dest\+Factor}



multiplied by the frame colour components 



Referenced by Ogre\+::\+Render\+System\+::set\+Colour\+Blend\+State().

\mbox{\Hypertarget{struct_ogre_1_1_colour_blend_state_a4c9669f21aa6a880dac5b5380310e6b0}\label{struct_ogre_1_1_colour_blend_state_a4c9669f21aa6a880dac5b5380310e6b0}} 
\index{Ogre::ColourBlendState@{Ogre::ColourBlendState}!sourceFactorAlpha@{sourceFactorAlpha}}
\index{sourceFactorAlpha@{sourceFactorAlpha}!Ogre::ColourBlendState@{Ogre::ColourBlendState}}
\doxysubsubsection{\texorpdfstring{sourceFactorAlpha}{sourceFactorAlpha}}
{\footnotesize\ttfamily \mbox{\hyperlink{group___materials_ga41c76d419d6c9c205a6c1d3b42872213}{Scene\+Blend\+Factor}} Ogre\+::\+Colour\+Blend\+State\+::source\+Factor\+Alpha}



multiplied by the render alpha components 



Referenced by Ogre\+::\+Render\+System\+::set\+Colour\+Blend\+State().

\mbox{\Hypertarget{struct_ogre_1_1_colour_blend_state_a6efce17376a11ea819d298d22580ea6b}\label{struct_ogre_1_1_colour_blend_state_a6efce17376a11ea819d298d22580ea6b}} 
\index{Ogre::ColourBlendState@{Ogre::ColourBlendState}!destFactorAlpha@{destFactorAlpha}}
\index{destFactorAlpha@{destFactorAlpha}!Ogre::ColourBlendState@{Ogre::ColourBlendState}}
\doxysubsubsection{\texorpdfstring{destFactorAlpha}{destFactorAlpha}}
{\footnotesize\ttfamily \mbox{\hyperlink{group___materials_ga41c76d419d6c9c205a6c1d3b42872213}{Scene\+Blend\+Factor}} Ogre\+::\+Colour\+Blend\+State\+::dest\+Factor\+Alpha}



multiplied by the frame alpha components 



Referenced by Ogre\+::\+Render\+System\+::set\+Colour\+Blend\+State().

\mbox{\Hypertarget{struct_ogre_1_1_colour_blend_state_a1a8d5d6033ad996dfadaafdad151e25d}\label{struct_ogre_1_1_colour_blend_state_a1a8d5d6033ad996dfadaafdad151e25d}} 
\index{Ogre::ColourBlendState@{Ogre::ColourBlendState}!operation@{operation}}
\index{operation@{operation}!Ogre::ColourBlendState@{Ogre::ColourBlendState}}
\doxysubsubsection{\texorpdfstring{operation}{operation}}
{\footnotesize\ttfamily \mbox{\hyperlink{group___materials_gaa7a12a72231aedf6e33d58aafc11214a}{Scene\+Blend\+Operation}} Ogre\+::\+Colour\+Blend\+State\+::operation}



The blend operation mode for combining colour values. 



Referenced by Ogre\+::\+Render\+System\+::set\+Colour\+Blend\+State().

\mbox{\Hypertarget{struct_ogre_1_1_colour_blend_state_a137130fbfd568631e517597aeebf1c03}\label{struct_ogre_1_1_colour_blend_state_a137130fbfd568631e517597aeebf1c03}} 
\index{Ogre::ColourBlendState@{Ogre::ColourBlendState}!alphaOperation@{alphaOperation}}
\index{alphaOperation@{alphaOperation}!Ogre::ColourBlendState@{Ogre::ColourBlendState}}
\doxysubsubsection{\texorpdfstring{alphaOperation}{alphaOperation}}
{\footnotesize\ttfamily \mbox{\hyperlink{group___materials_gaa7a12a72231aedf6e33d58aafc11214a}{Scene\+Blend\+Operation}} Ogre\+::\+Colour\+Blend\+State\+::alpha\+Operation}



The blend operation mode for combining alpha values. 



Referenced by Ogre\+::\+Render\+System\+::set\+Colour\+Blend\+State().



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