1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
3  <head>
4    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5    <meta http-equiv="Content-Style-Type" content="text/css" />
6    <link rel="stylesheet" href="../../../../../css/manpage.css" type="text/css" />
7    <style type="text/css"><!--
8      span.static_style
9      {
10        font-size			: 8pt;
11        color				: white;
12        font-weight			: bold;
13        background			: #44f;
14        border-left			: solid 1px #aaf;
15        border-top			: solid 1px #aaf;
16        border-right		: solid 1px #00c;
17        border-bottom		: solid 1px #00c;
18        padding-left		: 2px;
19        padding-right		: 2px;
20      }
21      span.virtual_style
22      {
23        font-size			 : 8pt;
24        color				 : white;
25        font-weight			: bold;
26        background			: #0a0;
27        border-left			: solid 1px #0f0;
28        border-top			: solid 1px #0f0;
29        border-right		: solid 1px #060;
30        border-bottom		: solid 1px #060;
31        padding-left		: 2px;
32        padding-right		: 2px;
33      }
34      span.protected_style
35      {
36        font-size			 : 8pt;
37        color				 : white;
38        font-weight			: bold;
39        background			: #444;
40        border-left			: solid 1px #ccc;
41        border-top			: solid 1px #ccc;
42        border-right		: solid 1px #222;
43        border-bottom		: solid 1px #222;
44        padding-left		: 2px;
45        padding-right		: 2px;
46      }
47        --></style>
48<title>nn::gr::CTR::RenderState::Blend</title>
49  </head>
50  <body>
51<h1><CODE><a href="../../../../../nn/Overview.html">nn</a>::<a href="../../../../../nn/gr/Overview.html">gr</a>::<a href="../../../../../nn/gr/CTR/Overview.html">CTR</a>::<a href="../../../../../nn/gr/CTR/RenderState/Overview.html">RenderState</a>::Blend</CODE> Class</h1>
52<h2>Syntax</h2>
53    <div class="section">
54<pre class="definition">class Blend</pre>
55    </div>
56<h2>Description</h2>
57    <div class="section">
58<p>Class for configuring blend settings. You can generate rendering commands by setting each value and then calling the <a href="../../../../../nn/gr/CTR/RenderState/Blend/MakeCommand.html"><CODE>MakeCommand</CODE></a> function. Because registers are shared, this cannot be used at the same time as logical operation settings.</p><!-- write here --></div>
59    <a name="variable" id="variable">
60<h2>Member Variables</h2>
61      <div class="section">
62        <table class="members">
63          <tr>
64            <td width="100"> </td>
65            <th>
66<span class="argument">isEnable</span>
67            </th>
68<td width="100">bool</td>
69<td>Setting to enable/disable blending. Type is <CODE>bool</CODE>. Initial value is <CODE>false</CODE> (disabled). You can only enable either logical operations or blending.</td>
70          </tr>
71          <tr>
72            <td width="100"> </td>
73            <th>
74<span class="argument">eqRgb</span>
75            </th>
76<td width="100"><a href="../../../../../nn_gx_CTR_Pica/PicaDataBlendEquation.html">PicaDataBlendEquation</a></td>
77<td>Sets the blend method for RGB components. Type is <a href="../../../../../nn_gx_CTR_Pica/PicaDataBlendEquation.html"><CODE>PicaDataBlendEquation</CODE></a>.    Initial value is <CODE>PICA_DATA_BLEND_EQUATION_ADD</CODE>.</td>
78          </tr>
79          <tr>
80            <td width="100"> </td>
81            <th>
82<span class="argument">eqAlpha</span>
83            </th>
84<td width="100"><a href="../../../../../nn_gx_CTR_Pica/PicaDataBlendEquation.html">PicaDataBlendEquation</a></td>
85<td>Sets the blend function for the alpha component. Type is <a href="../../../../../nn_gx_CTR_Pica/PicaDataBlendEquation.html"><CODE>PicaDataBlendEquation</CODE></a>. Initial value is <CODE>PICA_DATA_BLEND_EQUATION_ADD</CODE>.</td>
86          </tr>
87          <tr>
88            <td width="100"> </td>
89            <th>
90<span class="argument">srcRgb</span>
91            </th>
92<td width="100"><a href="../../../../../nn_gx_CTR_Pica/PicaDataBlendFunc.html">PicaDataBlendFunc</a></td>
93<td>Sets the blend RGB component source. Type is <a href="../../../../../nn_gx_CTR_Pica/PicaDataBlendFunc.html"><CODE>PicaDataBlendFunc</CODE></a>. Initial value is <CODE>PICA_DATA_BLEND_FUNC_SRC_ALPHA</CODE>.</td>
94          </tr>
95          <tr>
96            <td width="100"> </td>
97            <th>
98<span class="argument">srcAlpha</span>
99            </th>
100<td width="100"><a href="../../../../../nn_gx_CTR_Pica/PicaDataBlendFunc.html">PicaDataBlendFunc</a></td>
101<td>Sets the blend alpha component source. Type is <a href="../../../../../nn_gx_CTR_Pica/PicaDataBlendFunc.html"><CODE>PicaDataBlendFunc</CODE></a>. Initial value is <CODE>PICA_DATA_BLEND_FUNC_SRC_ALPHA</CODE>.</td>
102          </tr>
103          <tr>
104            <td width="100"> </td>
105            <th>
106<span class="argument">dstRgb</span>
107            </th>
108<td width="100"><a href="../../../../../nn_gx_CTR_Pica/PicaDataBlendFunc.html">PicaDataBlendFunc</a></td>
109<td>Sets the blend RGB component destination. Type is <a href="../../../../../nn_gx_CTR_Pica/PicaDataBlendFunc.html"><CODE>PicaDataBlendFunc</CODE></a>. Initial value is <CODE>PICA_DATA_BLEND_FUNC_ONE_MINUS_SRC_ALPHA</CODE>.</td>
110          </tr>
111          <tr>
112            <td width="100"> </td>
113            <th>
114<span class="argument">dstAlpha</span>
115            </th>
116<td width="100"><a href="../../../../../nn_gx_CTR_Pica/PicaDataBlendFunc.html">PicaDataBlendFunc</a></td>
117<td>Sets the blend ALPHA component destination. Type is <a href="../../../../../nn_gx_CTR_Pica/PicaDataBlendFunc.html"><CODE>PicaDataBlendFunc</CODE></a>.     Initial value is <CODE>PICA_DATA_BLEND_FUNC_ONE_MINUS_SRC_ALPHA</CODE>.</td>
118          </tr>
119          <tr>
120            <td width="100"> </td>
121            <th>
122<span class="argument">colorR</span>
123            </th>
124<td width="100">u8</td>
125<td>Sets the red component to use for the blend constant color. Type is <CODE>u8</CODE>. Specify a value in the range <CODE>[0, 255]</CODE>. The initial value is 255.</td>
126          </tr>
127          <tr>
128            <td width="100"> </td>
129            <th>
130<span class="argument">colorG</span>
131            </th>
132<td width="100">u8</td>
133<td>Sets the green component to use for the blend constant color. Type is <CODE>u8</CODE>. Specify a value in the range <CODE>[0, 255]</CODE>. The initial value is 255.</td>
134          </tr>
135          <tr>
136            <td width="100"> </td>
137            <th>
138<span class="argument">colorB</span>
139            </th>
140<td width="100">u8</td>
141<td>Sets the blue component to use for the blend constant color. Type is <CODE>u8</CODE>. Specify a value in the range <CODE>[0, 255]</CODE>. The initial value is 255.</td>
142          </tr>
143          <tr>
144            <td width="100"> </td>
145            <th>
146<span class="argument">colorA</span>
147            </th>
148<td width="100">u8</td>
149<td>Sets the alpha component to use for the blend constant color. Type is <CODE>u8</CODE>. Specify a value in the range <CODE>[0, 255]</CODE>. The initial value is 255.</td>
150          </tr> </table>
151      </div>
152    </a> <a name="function" id="function">
153<h2>Member Functions</h2>
154      <div class="section">
155        <table class="members">
156          <tr>
157            <td width="100">  </td>
158            <th>
159<a href="../../../../../nn/gr/CTR/RenderState/Blend/Blend.html"><CODE>Blend</CODE></a>
160            </th>
161<td>Initializes the blend settings to the initial values.</td>
162          </tr>
163          <tr>
164            <td width="100">  </td>
165            <th>
166<a href="../../../../../nn/gr/CTR/RenderState/Blend/MakeCommand.html"><CODE>MakeCommand</CODE></a>
167            </th>
168<td>Generates a rendering command based on information already set.</td>
169          </tr>
170          <tr>
171            <td width="100">
172<span class="static_style" title="static">S</span> </td>
173            <th>
174<a href="../../../../../nn/gr/CTR/RenderState/Blend/MakeDisableCommand.html"><CODE>MakeDisableCommand</CODE></a>
175            </th>
176<td>Disables blending.</td>
177          </tr> </table>
178      </div>
179    </a>
180<h2>Revision History</h2>
181    <div class="section">
182      <dl class="history">
183        <dt>2010/09/15</dt>
184<dd>Initial version.<br />
185        </dd>
186      </dl>
187    </div>
188  <hr><p>CONFIDENTIAL</p></body>
189</html>
190