-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_blend_8h_source.html
97 lines (97 loc) · 40.9 KB
/
_blend_8h_source.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Gamedev Framework (gf): Blend.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="gf_logo.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Gamedev Framework (gf)
 <span id="projectnumber">0.11.0</span>
</div>
<div id="projectbrief">A C++14 framework for 2D games</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_6d069d519ae9d12fa11dd8e685586b60.html">gf</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">Blend.h</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Gamedev Framework (gf)</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * Copyright (C) 2016-2018 Julien Bernard</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> *</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * This software is provided 'as-is', without any express or implied</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * warranty. In no event will the authors be held liable for any damages</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * arising from the use of this software.</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> *</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * Permission is granted to anyone to use this software for any purpose,</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * including commercial applications, and to alter it and redistribute it</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * freely, subject to the following restrictions:</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> *</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * 1. The origin of this software must not be misrepresented; you must not</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * claim that you wrote the original software. If you use this software</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * in a product, an acknowledgment in the product documentation would be</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * appreciated but is not required.</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * 2. Altered source versions must be plainly marked as such, and must not be</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * misrepresented as being the original software.</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> * 3. This notice may not be removed or altered from any source distribution.</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> *</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> * Part of this file comes from SFML, with the same license:</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"> * Copyright (C) 2007-2015 Laurent Gomila ([email protected])</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment"> */</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#ifndef GF_BLEND_H</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#define GF_BLEND_H</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "Portability.h"</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">namespace </span><a class="code" href="namespacegf.html">gf</a> {</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="keyword">inline</span> <span class="keyword">namespace </span>v1 {</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="group__graphics.html#ga22db82123b6cf1980987d7e3ca298f56"> 44</a></span>  <span class="keyword">enum class</span> <a class="code" href="group__graphics.html#ga22db82123b6cf1980987d7e3ca298f56">BlendEquation</a> {</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <a class="code" href="group__graphics.html#gga22db82123b6cf1980987d7e3ca298f56aec211f7c20af43e742bf2570c3cb84f9">Add</a>, </div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <a class="code" href="group__graphics.html#gga22db82123b6cf1980987d7e3ca298f56abb2c356401c2d3c0be676d940cfddaf6">Substract</a>, </div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <a class="code" href="group__graphics.html#gga22db82123b6cf1980987d7e3ca298f56aefb0fd0487d043b5ce9a21b5a1f6fe94">ReverseSubstract</a>, </div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  };</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="group__graphics.html#ga6f830cd8f436b449734223c382ef1aae"> 60</a></span>  <span class="keyword">enum class</span> <a class="code" href="group__graphics.html#ga6f830cd8f436b449734223c382ef1aae">BlendFactor</a> {</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <a class="code" href="group__graphics.html#gga6f830cd8f436b449734223c382ef1aaead7ed4ee1df437474d005188535f74875">Zero</a>, </div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <a class="code" href="group__graphics.html#gga6f830cd8f436b449734223c382ef1aaea06c2cea18679d64399783748fa367bdd">One</a>, </div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <a class="code" href="group__graphics.html#gga6f830cd8f436b449734223c382ef1aaea2ad714e29d37896d79187312086bc6fe">SrcColor</a>, </div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <a class="code" href="group__graphics.html#gga6f830cd8f436b449734223c382ef1aaea09d3240b4e2481b1a729da24e9bfddf7">OneMinusSrcColor</a>, </div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <a class="code" href="group__graphics.html#gga6f830cd8f436b449734223c382ef1aaeafaedf511c99a5461048fd6a3b73da26c">DstColor</a>, </div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <a class="code" href="group__graphics.html#gga6f830cd8f436b449734223c382ef1aaea09f1a054ebd4d3850fd248bd2fa7b325">OneMinusDstColor</a>, </div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <a class="code" href="group__graphics.html#gga6f830cd8f436b449734223c382ef1aaead5c7b7f0102df3f7305c43f73fc3a498">SrcAlpha</a>, </div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <a class="code" href="group__graphics.html#gga6f830cd8f436b449734223c382ef1aaeac00a6016489cff63d50d489ce52254cc">OneMinusSrcAlpha</a>, </div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <a class="code" href="group__graphics.html#gga6f830cd8f436b449734223c382ef1aaeaf72dbe2436b38a39e5927ed644e6818b">DstAlpha</a>, </div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <a class="code" href="group__graphics.html#gga6f830cd8f436b449734223c382ef1aaea4132e4b87a8d461be2c6ee8fc620cfb2">OneMinusDstAlpha</a> </div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  };</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> </div><div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="structgf_1_1_blend_mode.html"> 132</a></span>  <span class="keyword">struct </span>GF_API <a class="code" href="structgf_1_1_blend_mode.html">BlendMode</a> {</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span> </div><div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="structgf_1_1_blend_mode.html#a4bc1a1879601c03d0f205895ef33a696"> 139</a></span>  constexpr <a class="code" href="structgf_1_1_blend_mode.html#a4bc1a1879601c03d0f205895ef33a696">BlendMode</a>()</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  : colorSrcFactor(<a class="code" href="group__graphics.html#ga6f830cd8f436b449734223c382ef1aae">BlendFactor</a>::<a class="code" href="group__graphics.html#gga6f830cd8f436b449734223c382ef1aaea06c2cea18679d64399783748fa367bdd">One</a>)</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  , colorDstFactor(<a class="code" href="group__graphics.html#ga6f830cd8f436b449734223c382ef1aae">BlendFactor</a>::<a class="code" href="group__graphics.html#gga6f830cd8f436b449734223c382ef1aaead7ed4ee1df437474d005188535f74875">Zero</a>)</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  , colorEquation(<a class="code" href="group__graphics.html#ga22db82123b6cf1980987d7e3ca298f56">BlendEquation</a>::<a class="code" href="group__graphics.html#gga22db82123b6cf1980987d7e3ca298f56aec211f7c20af43e742bf2570c3cb84f9">Add</a>)</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  , alphaSrcFactor(<a class="code" href="group__graphics.html#ga6f830cd8f436b449734223c382ef1aae">BlendFactor</a>::<a class="code" href="group__graphics.html#gga6f830cd8f436b449734223c382ef1aaea06c2cea18679d64399783748fa367bdd">One</a>)</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  , alphaDstFactor(<a class="code" href="group__graphics.html#ga6f830cd8f436b449734223c382ef1aae">BlendFactor</a>::<a class="code" href="group__graphics.html#gga6f830cd8f436b449734223c382ef1aaead7ed4ee1df437474d005188535f74875">Zero</a>)</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  , alphaEquation(<a class="code" href="group__graphics.html#ga22db82123b6cf1980987d7e3ca298f56">BlendEquation</a>::<a class="code" href="group__graphics.html#gga22db82123b6cf1980987d7e3ca298f56aec211f7c20af43e742bf2570c3cb84f9">Add</a>)</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  {</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span> </div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  }</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span> </div><div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="structgf_1_1_blend_mode.html#a8ceaa8fc4278cfc9e3dc4acae22a530e"> 160</a></span>  constexpr <a class="code" href="structgf_1_1_blend_mode.html#a8ceaa8fc4278cfc9e3dc4acae22a530e">BlendMode</a>(<a class="code" href="group__graphics.html#ga6f830cd8f436b449734223c382ef1aae">BlendFactor</a> sourceFactor, <a class="code" href="group__graphics.html#ga6f830cd8f436b449734223c382ef1aae">BlendFactor</a> destinationFactor, <a class="code" href="group__graphics.html#ga22db82123b6cf1980987d7e3ca298f56">BlendEquation</a> equation = <a class="code" href="group__graphics.html#gga22db82123b6cf1980987d7e3ca298f56aec211f7c20af43e742bf2570c3cb84f9">BlendEquation::Add</a>)</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  : colorSrcFactor(sourceFactor)</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  , colorDstFactor(destinationFactor)</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  , colorEquation(equation)</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  , alphaSrcFactor(sourceFactor)</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  , alphaDstFactor(destinationFactor)</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  , alphaEquation(equation)</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  {</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span> </div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  }</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span> </div><div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="structgf_1_1_blend_mode.html#ab0b7bebcc2bfd73350770be026351a98"> 181</a></span>  constexpr <a class="code" href="structgf_1_1_blend_mode.html#ab0b7bebcc2bfd73350770be026351a98">BlendMode</a>(<a class="code" href="group__graphics.html#ga6f830cd8f436b449734223c382ef1aae">BlendFactor</a> colorSourceFactor, <a class="code" href="group__graphics.html#ga6f830cd8f436b449734223c382ef1aae">BlendFactor</a> colorDestinationFactor, <a class="code" href="group__graphics.html#ga22db82123b6cf1980987d7e3ca298f56">BlendEquation</a> colorBlendEquation,</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <a class="code" href="group__graphics.html#ga6f830cd8f436b449734223c382ef1aae">BlendFactor</a> alphaSourceFactor, <a class="code" href="group__graphics.html#ga6f830cd8f436b449734223c382ef1aae">BlendFactor</a> alphaDestinationFactor, <a class="code" href="group__graphics.html#ga22db82123b6cf1980987d7e3ca298f56">BlendEquation</a> alphaBlendEquation)</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  : colorSrcFactor(colorSourceFactor)</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  , colorDstFactor(colorDestinationFactor)</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  , colorEquation(colorBlendEquation)</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  , alphaSrcFactor(alphaSourceFactor)</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  , alphaDstFactor(alphaDestinationFactor)</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  , alphaEquation(alphaBlendEquation)</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  {</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span> </div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  }</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span> </div><div class="line"><a name="l00193"></a><span class="lineno"><a class="line" href="structgf_1_1_blend_mode.html#a6e796d5d69899ad4ad60a5d1ceb6aff6"> 193</a></span>  <a class="code" href="group__graphics.html#ga6f830cd8f436b449734223c382ef1aae">BlendFactor</a> <a class="code" href="structgf_1_1_blend_mode.html#a6e796d5d69899ad4ad60a5d1ceb6aff6">colorSrcFactor</a>; </div><div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="structgf_1_1_blend_mode.html#a94c21d4f3b4a27bfaf2998a4de53e9c4"> 194</a></span>  <a class="code" href="group__graphics.html#ga6f830cd8f436b449734223c382ef1aae">BlendFactor</a> <a class="code" href="structgf_1_1_blend_mode.html#a94c21d4f3b4a27bfaf2998a4de53e9c4">colorDstFactor</a>; </div><div class="line"><a name="l00195"></a><span class="lineno"><a class="line" href="structgf_1_1_blend_mode.html#a8b778f95773a9450c2ad9b55b9fa7d59"> 195</a></span>  <a class="code" href="group__graphics.html#ga22db82123b6cf1980987d7e3ca298f56">BlendEquation</a> <a class="code" href="structgf_1_1_blend_mode.html#a8b778f95773a9450c2ad9b55b9fa7d59">colorEquation</a>; </div><div class="line"><a name="l00196"></a><span class="lineno"><a class="line" href="structgf_1_1_blend_mode.html#a72014b3a26ebdf610270b440d9ed452b"> 196</a></span>  <a class="code" href="group__graphics.html#ga6f830cd8f436b449734223c382ef1aae">BlendFactor</a> <a class="code" href="structgf_1_1_blend_mode.html#a72014b3a26ebdf610270b440d9ed452b">alphaSrcFactor</a>; </div><div class="line"><a name="l00197"></a><span class="lineno"><a class="line" href="structgf_1_1_blend_mode.html#a9329f38e4450a2c355972d8125b8bc3b"> 197</a></span>  <a class="code" href="group__graphics.html#ga6f830cd8f436b449734223c382ef1aae">BlendFactor</a> <a class="code" href="structgf_1_1_blend_mode.html#a9329f38e4450a2c355972d8125b8bc3b">alphaDstFactor</a>; </div><div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="structgf_1_1_blend_mode.html#a15fe3e46148e6486936d3543782c20cd"> 198</a></span>  <a class="code" href="group__graphics.html#ga22db82123b6cf1980987d7e3ca298f56">BlendEquation</a> <a class="code" href="structgf_1_1_blend_mode.html#a15fe3e46148e6486936d3543782c20cd">alphaEquation</a>; </div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  };</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span> </div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  constexpr <a class="code" href="structgf_1_1_blend_mode.html">BlendMode</a> <a class="code" href="group__graphics.html#ga1fa131411a6a7f3bf3827e46fecc316f">BlendAlpha</a></div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span> <span class="preprocessor"> #ifndef DOXYGEN_SHOULD_SKIP_THIS</span></div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  = <a class="code" href="structgf_1_1_blend_mode.html">BlendMode</a>(</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  <a class="code" href="group__graphics.html#gga6f830cd8f436b449734223c382ef1aaead5c7b7f0102df3f7305c43f73fc3a498">BlendFactor::SrcAlpha</a>, <a class="code" href="group__graphics.html#gga6f830cd8f436b449734223c382ef1aaeac00a6016489cff63d50d489ce52254cc">BlendFactor::OneMinusSrcAlpha</a>, <a class="code" href="group__graphics.html#gga22db82123b6cf1980987d7e3ca298f56aec211f7c20af43e742bf2570c3cb84f9">BlendEquation::Add</a>,</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <a class="code" href="group__graphics.html#gga6f830cd8f436b449734223c382ef1aaea06c2cea18679d64399783748fa367bdd">BlendFactor::One</a>, <a class="code" href="group__graphics.html#gga6f830cd8f436b449734223c382ef1aaeac00a6016489cff63d50d489ce52254cc">BlendFactor::OneMinusSrcAlpha</a>, <a class="code" href="group__graphics.html#gga22db82123b6cf1980987d7e3ca298f56aec211f7c20af43e742bf2570c3cb84f9">BlendEquation::Add</a></div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  )</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  <span class="preprocessor">#endif</span></div><div class="line"><a name="l00217"></a><span class="lineno"><a class="line" href="group__graphics.html#ga1fa131411a6a7f3bf3827e46fecc316f"> 217</a></span>  ;</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span> </div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  constexpr <a class="code" href="structgf_1_1_blend_mode.html">BlendMode</a> <a class="code" href="group__graphics.html#ga5c5641126a6f83a8724a1bd63cc669c5">BlendAdd</a></div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span> <span class="preprocessor"> #ifndef DOXYGEN_SHOULD_SKIP_THIS</span></div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  = <a class="code" href="structgf_1_1_blend_mode.html">BlendMode</a>(</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  <a class="code" href="group__graphics.html#gga6f830cd8f436b449734223c382ef1aaead5c7b7f0102df3f7305c43f73fc3a498">BlendFactor::SrcAlpha</a>, <a class="code" href="group__graphics.html#gga6f830cd8f436b449734223c382ef1aaea06c2cea18679d64399783748fa367bdd">BlendFactor::One</a>, <a class="code" href="group__graphics.html#gga22db82123b6cf1980987d7e3ca298f56aec211f7c20af43e742bf2570c3cb84f9">BlendEquation::Add</a>,</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  <a class="code" href="group__graphics.html#gga6f830cd8f436b449734223c382ef1aaea06c2cea18679d64399783748fa367bdd">BlendFactor::One</a>, <a class="code" href="group__graphics.html#gga6f830cd8f436b449734223c382ef1aaea06c2cea18679d64399783748fa367bdd">BlendFactor::One</a>, <a class="code" href="group__graphics.html#gga22db82123b6cf1980987d7e3ca298f56aec211f7c20af43e742bf2570c3cb84f9">BlendEquation::Add</a></div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  )</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  <span class="preprocessor">#endif</span></div><div class="line"><a name="l00234"></a><span class="lineno"><a class="line" href="group__graphics.html#ga5c5641126a6f83a8724a1bd63cc669c5"> 234</a></span>  ;</div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span> </div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  constexpr <a class="code" href="structgf_1_1_blend_mode.html">BlendMode</a> <a class="code" href="group__graphics.html#ga5c274a128bf38122d38bf3c05ac89c7f">BlendMultiply</a></div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span> <span class="preprocessor"> #ifndef DOXYGEN_SHOULD_SKIP_THIS</span></div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  = <a class="code" href="structgf_1_1_blend_mode.html">BlendMode</a> (<a class="code" href="group__graphics.html#gga6f830cd8f436b449734223c382ef1aaeafaedf511c99a5461048fd6a3b73da26c">BlendFactor::DstColor</a>, <a class="code" href="group__graphics.html#gga6f830cd8f436b449734223c382ef1aaead7ed4ee1df437474d005188535f74875">BlendFactor::Zero</a>)</div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  <span class="preprocessor">#endif</span></div><div class="line"><a name="l00248"></a><span class="lineno"><a class="line" href="group__graphics.html#ga5c274a128bf38122d38bf3c05ac89c7f"> 248</a></span>  ;</div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span> </div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  constexpr <a class="code" href="structgf_1_1_blend_mode.html">BlendMode</a> <a class="code" href="group__graphics.html#ga278e0a0da765e621f5f9077372add90b">BlendNone</a></div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span> <span class="preprocessor"> #ifndef DOXYGEN_SHOULD_SKIP_THIS</span></div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  = <a class="code" href="structgf_1_1_blend_mode.html">BlendMode</a>(<a class="code" href="group__graphics.html#gga6f830cd8f436b449734223c382ef1aaea06c2cea18679d64399783748fa367bdd">BlendFactor::One</a>, <a class="code" href="group__graphics.html#gga6f830cd8f436b449734223c382ef1aaead7ed4ee1df437474d005188535f74875">BlendFactor::Zero</a>)</div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  <span class="preprocessor">#endif</span></div><div class="line"><a name="l00262"></a><span class="lineno"><a class="line" href="group__graphics.html#ga278e0a0da765e621f5f9077372add90b"> 262</a></span>  ;</div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span> </div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span> </div><div class="line"><a name="l00273"></a><span class="lineno"><a class="line" href="structgf_1_1_blend_mode.html#a48e373e0f882c3bd3dc4033baae9cf3c"> 273</a></span>  constexpr <span class="keywordtype">bool</span> <a class="code" href="structgf_1_1_blend_mode.html#a48e373e0f882c3bd3dc4033baae9cf3c">operator==</a>(<span class="keyword">const</span> <a class="code" href="structgf_1_1_blend_mode.html">BlendMode</a>& lhs, <span class="keyword">const</span> <a class="code" href="structgf_1_1_blend_mode.html">BlendMode</a>& rhs) {</div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  <span class="keywordflow">return</span> lhs.<a class="code" href="structgf_1_1_blend_mode.html#a6e796d5d69899ad4ad60a5d1ceb6aff6">colorSrcFactor</a> == rhs.<a class="code" href="structgf_1_1_blend_mode.html#a6e796d5d69899ad4ad60a5d1ceb6aff6">colorSrcFactor</a></div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  && lhs.<a class="code" href="structgf_1_1_blend_mode.html#a94c21d4f3b4a27bfaf2998a4de53e9c4">colorDstFactor</a> == rhs.<a class="code" href="structgf_1_1_blend_mode.html#a94c21d4f3b4a27bfaf2998a4de53e9c4">colorDstFactor</a></div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  && lhs.<a class="code" href="structgf_1_1_blend_mode.html#a8b778f95773a9450c2ad9b55b9fa7d59">colorEquation</a> == rhs.<a class="code" href="structgf_1_1_blend_mode.html#a8b778f95773a9450c2ad9b55b9fa7d59">colorEquation</a></div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  && lhs.<a class="code" href="structgf_1_1_blend_mode.html#a72014b3a26ebdf610270b440d9ed452b">alphaSrcFactor</a> == rhs.<a class="code" href="structgf_1_1_blend_mode.html#a72014b3a26ebdf610270b440d9ed452b">alphaSrcFactor</a></div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  && lhs.<a class="code" href="structgf_1_1_blend_mode.html#a9329f38e4450a2c355972d8125b8bc3b">alphaDstFactor</a> == rhs.<a class="code" href="structgf_1_1_blend_mode.html#a9329f38e4450a2c355972d8125b8bc3b">alphaDstFactor</a></div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  && lhs.<a class="code" href="structgf_1_1_blend_mode.html#a15fe3e46148e6486936d3543782c20cd">alphaEquation</a> == rhs.<a class="code" href="structgf_1_1_blend_mode.html#a15fe3e46148e6486936d3543782c20cd">alphaEquation</a>;</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  }</div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span> </div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span> <span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span></div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span> }</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span> }</div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span> </div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span> <span class="preprocessor">#endif // GF_BLEND_H</span></div><div class="ttc" id="group__graphics_html_gga22db82123b6cf1980987d7e3ca298f56aefb0fd0487d043b5ce9a21b5a1f6fe94"><div class="ttname"><a href="group__graphics.html#gga22db82123b6cf1980987d7e3ca298f56aefb0fd0487d043b5ce9a21b5a1f6fe94">gf::BlendEquation::ReverseSubstract</a></div><div class="ttdoc">Pixel = Dst * DstFactor - Src * SrcFactor. </div></div>
<div class="ttc" id="structgf_1_1_blend_mode_html_a15fe3e46148e6486936d3543782c20cd"><div class="ttname"><a href="structgf_1_1_blend_mode.html#a15fe3e46148e6486936d3543782c20cd">gf::BlendMode::alphaEquation</a></div><div class="ttdeci">BlendEquation alphaEquation</div><div class="ttdoc">Blending equation for the alpha channel. </div><div class="ttdef"><b>Definition:</b> Blend.h:198</div></div>
<div class="ttc" id="group__graphics_html_gga6f830cd8f436b449734223c382ef1aaea09d3240b4e2481b1a729da24e9bfddf7"><div class="ttname"><a href="group__graphics.html#gga6f830cd8f436b449734223c382ef1aaea09d3240b4e2481b1a729da24e9bfddf7">gf::BlendFactor::OneMinusSrcColor</a></div><div class="ttdoc">(1, 1, 1, 1) - (src.r, src.g, src.b, src.a) </div></div>
<div class="ttc" id="group__graphics_html_gga6f830cd8f436b449734223c382ef1aaea09f1a054ebd4d3850fd248bd2fa7b325"><div class="ttname"><a href="group__graphics.html#gga6f830cd8f436b449734223c382ef1aaea09f1a054ebd4d3850fd248bd2fa7b325">gf::BlendFactor::OneMinusDstColor</a></div><div class="ttdoc">(1, 1, 1, 1) - (dst.r, dst.g, dst.b, dst.a) </div></div>
<div class="ttc" id="structgf_1_1_blend_mode_html_a6e796d5d69899ad4ad60a5d1ceb6aff6"><div class="ttname"><a href="structgf_1_1_blend_mode.html#a6e796d5d69899ad4ad60a5d1ceb6aff6">gf::BlendMode::colorSrcFactor</a></div><div class="ttdeci">BlendFactor colorSrcFactor</div><div class="ttdoc">Source blending factor for the color channels. </div><div class="ttdef"><b>Definition:</b> Blend.h:193</div></div>
<div class="ttc" id="group__graphics_html_ga1fa131411a6a7f3bf3827e46fecc316f"><div class="ttname"><a href="group__graphics.html#ga1fa131411a6a7f3bf3827e46fecc316f">gf::BlendAlpha</a></div><div class="ttdeci">constexpr BlendMode BlendAlpha</div><div class="ttdoc">Alpha blend mode. </div><div class="ttdef"><b>Definition:</b> Blend.h:217</div></div>
<div class="ttc" id="group__graphics_html_ga278e0a0da765e621f5f9077372add90b"><div class="ttname"><a href="group__graphics.html#ga278e0a0da765e621f5f9077372add90b">gf::BlendNone</a></div><div class="ttdeci">constexpr BlendMode BlendNone</div><div class="ttdoc">No blend mode. </div><div class="ttdef"><b>Definition:</b> Blend.h:262</div></div>
<div class="ttc" id="group__graphics_html_gga22db82123b6cf1980987d7e3ca298f56abb2c356401c2d3c0be676d940cfddaf6"><div class="ttname"><a href="group__graphics.html#gga22db82123b6cf1980987d7e3ca298f56abb2c356401c2d3c0be676d940cfddaf6">gf::BlendEquation::Substract</a></div><div class="ttdoc">Pixel = Src * SrcFactor - Dst * DstFactor. </div></div>
<div class="ttc" id="group__graphics_html_gga6f830cd8f436b449734223c382ef1aaeac00a6016489cff63d50d489ce52254cc"><div class="ttname"><a href="group__graphics.html#gga6f830cd8f436b449734223c382ef1aaeac00a6016489cff63d50d489ce52254cc">gf::BlendFactor::OneMinusSrcAlpha</a></div><div class="ttdoc">(1, 1, 1, 1) - (src.a, src.a, src.a, src.a) </div></div>
<div class="ttc" id="structgf_1_1_blend_mode_html_a94c21d4f3b4a27bfaf2998a4de53e9c4"><div class="ttname"><a href="structgf_1_1_blend_mode.html#a94c21d4f3b4a27bfaf2998a4de53e9c4">gf::BlendMode::colorDstFactor</a></div><div class="ttdeci">BlendFactor colorDstFactor</div><div class="ttdoc">Destination blending factor for the color channels. </div><div class="ttdef"><b>Definition:</b> Blend.h:194</div></div>
<div class="ttc" id="structgf_1_1_blend_mode_html_a9329f38e4450a2c355972d8125b8bc3b"><div class="ttname"><a href="structgf_1_1_blend_mode.html#a9329f38e4450a2c355972d8125b8bc3b">gf::BlendMode::alphaDstFactor</a></div><div class="ttdeci">BlendFactor alphaDstFactor</div><div class="ttdoc">Destination blending factor for the alpha channel. </div><div class="ttdef"><b>Definition:</b> Blend.h:197</div></div>
<div class="ttc" id="structgf_1_1_blend_mode_html_a8b778f95773a9450c2ad9b55b9fa7d59"><div class="ttname"><a href="structgf_1_1_blend_mode.html#a8b778f95773a9450c2ad9b55b9fa7d59">gf::BlendMode::colorEquation</a></div><div class="ttdeci">BlendEquation colorEquation</div><div class="ttdoc">Blending equation for the color channels. </div><div class="ttdef"><b>Definition:</b> Blend.h:195</div></div>
<div class="ttc" id="group__graphics_html_gga6f830cd8f436b449734223c382ef1aaeafaedf511c99a5461048fd6a3b73da26c"><div class="ttname"><a href="group__graphics.html#gga6f830cd8f436b449734223c382ef1aaeafaedf511c99a5461048fd6a3b73da26c">gf::BlendFactor::DstColor</a></div><div class="ttdoc">(dst.r, dst.g, dst.b, dst.a) </div></div>
<div class="ttc" id="structgf_1_1_blend_mode_html_ab0b7bebcc2bfd73350770be026351a98"><div class="ttname"><a href="structgf_1_1_blend_mode.html#ab0b7bebcc2bfd73350770be026351a98">gf::BlendMode::BlendMode</a></div><div class="ttdeci">constexpr BlendMode(BlendFactor colorSourceFactor, BlendFactor colorDestinationFactor, BlendEquation colorBlendEquation, BlendFactor alphaSourceFactor, BlendFactor alphaDestinationFactor, BlendEquation alphaBlendEquation)</div><div class="ttdoc">Construct the blend mode given the factors and equation. </div><div class="ttdef"><b>Definition:</b> Blend.h:181</div></div>
<div class="ttc" id="namespacegf_html"><div class="ttname"><a href="namespacegf.html">gf</a></div><div class="ttdoc">The namespace for gf classes. </div><div class="ttdef"><b>Definition:</b> Action.h:35</div></div>
<div class="ttc" id="structgf_1_1_blend_mode_html_a72014b3a26ebdf610270b440d9ed452b"><div class="ttname"><a href="structgf_1_1_blend_mode.html#a72014b3a26ebdf610270b440d9ed452b">gf::BlendMode::alphaSrcFactor</a></div><div class="ttdeci">BlendFactor alphaSrcFactor</div><div class="ttdoc">Source blending factor for the alpha channel. </div><div class="ttdef"><b>Definition:</b> Blend.h:196</div></div>
<div class="ttc" id="group__graphics_html_ga5c274a128bf38122d38bf3c05ac89c7f"><div class="ttname"><a href="group__graphics.html#ga5c274a128bf38122d38bf3c05ac89c7f">gf::BlendMultiply</a></div><div class="ttdeci">constexpr BlendMode BlendMultiply</div><div class="ttdoc">Multiplicative blend mode. </div><div class="ttdef"><b>Definition:</b> Blend.h:248</div></div>
<div class="ttc" id="group__graphics_html_gga22db82123b6cf1980987d7e3ca298f56aec211f7c20af43e742bf2570c3cb84f9"><div class="ttname"><a href="group__graphics.html#gga22db82123b6cf1980987d7e3ca298f56aec211f7c20af43e742bf2570c3cb84f9">gf::BlendEquation::Add</a></div><div class="ttdoc">Pixel = Src * SrcFactor + Dst * DstFactor. </div></div>
<div class="ttc" id="structgf_1_1_blend_mode_html"><div class="ttname"><a href="structgf_1_1_blend_mode.html">gf::BlendMode</a></div><div class="ttdoc">Blending modes for drawing. </div><div class="ttdef"><b>Definition:</b> Blend.h:132</div></div>
<div class="ttc" id="group__graphics_html_gga6f830cd8f436b449734223c382ef1aaead5c7b7f0102df3f7305c43f73fc3a498"><div class="ttname"><a href="group__graphics.html#gga6f830cd8f436b449734223c382ef1aaead5c7b7f0102df3f7305c43f73fc3a498">gf::BlendFactor::SrcAlpha</a></div><div class="ttdoc">(src.a, src.a, src.a, src.a) </div></div>
<div class="ttc" id="group__graphics_html_gga6f830cd8f436b449734223c382ef1aaea06c2cea18679d64399783748fa367bdd"><div class="ttname"><a href="group__graphics.html#gga6f830cd8f436b449734223c382ef1aaea06c2cea18679d64399783748fa367bdd">gf::BlendFactor::One</a></div><div class="ttdoc">(1, 1, 1, 1) </div></div>
<div class="ttc" id="group__graphics_html_ga5c5641126a6f83a8724a1bd63cc669c5"><div class="ttname"><a href="group__graphics.html#ga5c5641126a6f83a8724a1bd63cc669c5">gf::BlendAdd</a></div><div class="ttdeci">constexpr BlendMode BlendAdd</div><div class="ttdoc">Additive blend mode. </div><div class="ttdef"><b>Definition:</b> Blend.h:234</div></div>
<div class="ttc" id="group__graphics_html_gga6f830cd8f436b449734223c382ef1aaea4132e4b87a8d461be2c6ee8fc620cfb2"><div class="ttname"><a href="group__graphics.html#gga6f830cd8f436b449734223c382ef1aaea4132e4b87a8d461be2c6ee8fc620cfb2">gf::BlendFactor::OneMinusDstAlpha</a></div><div class="ttdoc">(1, 1, 1, 1) - (dst.a, dst.a, dst.a, dst.a) </div></div>
<div class="ttc" id="structgf_1_1_blend_mode_html_a4bc1a1879601c03d0f205895ef33a696"><div class="ttname"><a href="structgf_1_1_blend_mode.html#a4bc1a1879601c03d0f205895ef33a696">gf::BlendMode::BlendMode</a></div><div class="ttdeci">constexpr BlendMode()</div><div class="ttdoc">Default constructor. </div><div class="ttdef"><b>Definition:</b> Blend.h:139</div></div>
<div class="ttc" id="structgf_1_1_blend_mode_html_a48e373e0f882c3bd3dc4033baae9cf3c"><div class="ttname"><a href="structgf_1_1_blend_mode.html#a48e373e0f882c3bd3dc4033baae9cf3c">gf::BlendMode::operator==</a></div><div class="ttdeci">constexpr bool operator==(const BlendMode &lhs, const BlendMode &rhs)</div><div class="ttdoc">Equality operator. </div><div class="ttdef"><b>Definition:</b> Blend.h:273</div></div>
<div class="ttc" id="group__graphics_html_ga6f830cd8f436b449734223c382ef1aae"><div class="ttname"><a href="group__graphics.html#ga6f830cd8f436b449734223c382ef1aae">gf::BlendFactor</a></div><div class="ttdeci">BlendFactor</div><div class="ttdoc">Enumeration of the blending factors. </div><div class="ttdef"><b>Definition:</b> Blend.h:60</div></div>
<div class="ttc" id="group__graphics_html_gga6f830cd8f436b449734223c382ef1aaea2ad714e29d37896d79187312086bc6fe"><div class="ttname"><a href="group__graphics.html#gga6f830cd8f436b449734223c382ef1aaea2ad714e29d37896d79187312086bc6fe">gf::BlendFactor::SrcColor</a></div><div class="ttdoc">(src.r, src.g, src.b, src.a) </div></div>
<div class="ttc" id="group__graphics_html_ga22db82123b6cf1980987d7e3ca298f56"><div class="ttname"><a href="group__graphics.html#ga22db82123b6cf1980987d7e3ca298f56">gf::BlendEquation</a></div><div class="ttdeci">BlendEquation</div><div class="ttdoc">Enumeration of the blending equations. </div><div class="ttdef"><b>Definition:</b> Blend.h:44</div></div>
<div class="ttc" id="structgf_1_1_blend_mode_html_a8ceaa8fc4278cfc9e3dc4acae22a530e"><div class="ttname"><a href="structgf_1_1_blend_mode.html#a8ceaa8fc4278cfc9e3dc4acae22a530e">gf::BlendMode::BlendMode</a></div><div class="ttdeci">constexpr BlendMode(BlendFactor sourceFactor, BlendFactor destinationFactor, BlendEquation equation=BlendEquation::Add)</div><div class="ttdoc">Construct the blend mode given the factors and equation. </div><div class="ttdef"><b>Definition:</b> Blend.h:160</div></div>
<div class="ttc" id="group__graphics_html_gga6f830cd8f436b449734223c382ef1aaeaf72dbe2436b38a39e5927ed644e6818b"><div class="ttname"><a href="group__graphics.html#gga6f830cd8f436b449734223c382ef1aaeaf72dbe2436b38a39e5927ed644e6818b">gf::BlendFactor::DstAlpha</a></div><div class="ttdoc">(dst.a, dst.a, dst.a, dst.a) </div></div>
<div class="ttc" id="group__graphics_html_gga6f830cd8f436b449734223c382ef1aaead7ed4ee1df437474d005188535f74875"><div class="ttname"><a href="group__graphics.html#gga6f830cd8f436b449734223c382ef1aaead7ed4ee1df437474d005188535f74875">gf::BlendFactor::Zero</a></div><div class="ttdoc">(0, 0, 0, 0) </div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>