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
22      span.virtual_style
23      {
24        font-size			 : 8pt;
25        color				 : white;
26        font-weight			: bold;
27        background			: #0a0;
28        border-left			: solid 1px #0f0;
29        border-top			: solid 1px #0f0;
30        border-right		: solid 1px #060;
31        border-bottom		: solid 1px #060;
32        padding-left		: 2px;
33        padding-right		: 2px;
34      }
35
36      span.protected_style
37      {
38        font-size			 : 8pt;
39        color				 : white;
40        font-weight			: bold;
41        background			: #444;
42        border-left			: solid 1px #ccc;
43        border-top			: solid 1px #ccc;
44        border-right		: solid 1px #222;
45        border-bottom		: solid 1px #222;
46        padding-left		: 2px;
47        padding-right		: 2px;
48      }
49        --></style>
50<title>nn::gr::CTR::ProcedureTexture</title>
51  </head>
52  <body>
53<h1><CODE>nn::gr::CTR::ProcedureTexture</CODE> Class</h1>
54<h2>Syntax</h2>
55    <div class="section">
56      <pre class="definition">class ProcedureTexture</pre>
57    </div>
58<h2>Description</h2>
59    <div class="section">
60<p>Class for generating procedural texture command.</p><!-- write here --></div>
61    <a name="constant" id="constant">
62<h2>Member Constants</h2>
63      <div class="section">
64        <table class="members">
65          <tr>
66            <td width="100">
67<span class="static_style" title="static">S</span>
68            </td>
69            <th>
70<span class="argument"><a href="../../../../nn/gr/CTR/ProcedureTexture/PROCTEX_LOOKUP_TABLE_ELEMENT_NUM.html"><CODE>PROCTEX_LOOKUP_TABLE_ELEMENT_NUM</CODE></a></span>
71            </th>
72<td>The lookup table stores 128 data elements.</td>
73          </tr>
74          <tr>
75            <td width="100">
76<span class="static_style" title="static">S</span>
77            </td>
78            <th>
79<span class="argument"><a href="../../../../nn/gr/CTR/ProcedureTexture/PROCTEX_COLOR_LOOKUP_TABLE_ELEMENT_NUM.html"><CODE>PROCTEX_COLOR_LOOKUP_TABLE_ELEMENT_NUM</CODE></a></span>
80            </th>
81<td>The color lookup table stores 256 data elements.</td>
82          </tr> </table>
83      </div>
84    </a> <a name="variable" id="variable">
85<h2>Member Variables</h2>
86      <div class="section">
87        <table class="members">
88          <tr>
89            <td width="100"> </td>
90            <th>
91<span class="argument">rgbMap</span>
92            </th>
93<td>RGB mapping function mode. Type is <a href="../../../../nn_gx_CTR_Pica/PicaDataProcTexMap.html"><CODE>PicaDataProcTexMap</CODE></a>. Corresponds to the <CODE>dmp_Texture[3].ptRgbMap</CODE> uniform.</td>
94          </tr>
95          <tr>
96            <td width="100"> </td>
97            <th>
98<span class="argument">alphaMap</span>
99            </th>
100<td>Alpha mapping function mode. Type is <a href="../../../../nn_gx_CTR_Pica/PicaDataProcTexMap.html"><CODE>PicaDataProcTexMap</CODE></a>. Corresponds to the <CODE>dmp_Texture[3].ptAlphaMap</CODE> uniform.</td>
101          </tr>
102          <tr>
103            <td width="100"> </td>
104            <th>
105<span class="argument">alphaSeparate</span>
106            </th>
107<td>Specifies whether the mapping function should handle alpha values separately. Type is <CODE>bool</CODE>. Corresponds to the <CODE>dmp_Texture[3].ptAlphaSeparate</CODE> uniform.</td>
108          </tr>
109          <tr>
110            <td width="100"> </td>
111            <th>
112<span class="argument">clampU</span>
113            </th>
114<td>A texture's U-direction clamp mode. Type is <a href="../../../../nn_gx_CTR_Pica/PicaDataProcTexClamp.html"><CODE>PicaDataProcTexClamp</CODE></a>. Corresponds to the <CODE>dmp_Texture[3].ptClampU</CODE> uniform.</td>
115          </tr>
116          <tr>
117            <td width="100"> </td>
118            <th>
119<span class="argument">clampV</span>
120            </th>
121<td>A texture's V-direction clamp mode. Type is <a href="../../../../nn_gx_CTR_Pica/PicaDataProcTexClamp.html"><CODE>PicaDataProcTexClamp</CODE></a>. Corresponds to the <CODE>dmp_Texture[3].ptClampV</CODE> uniform.</td>
122          </tr>
123          <tr>
124            <td width="100"> </td>
125            <th>
126<span class="argument">shiftU</span>
127            </th>
128<td>A texture's U-direction shift calculation mode. Type is <a href="../../../../nn_gx_CTR_Pica/PicaDataProcTexShift.html"><CODE>PicaDataProcTexShift</CODE></a>. Corresponds to the <CODE>dmp_Texture[3].ptShiftU</CODE> uniform.</td>
129          </tr>
130          <tr>
131            <td width="100"> </td>
132            <th>
133<span class="argument">shiftV</span>
134            </th>
135<td>A texture's V-direction shift calculation mode. Type is <a href="../../../../nn_gx_CTR_Pica/PicaDataProcTexShift.html"><CODE>PicaDataProcTexShift</CODE></a>. Corresponds to the <CODE>dmp_Texture[3].ptShiftV</CODE> uniform.</td>
136          </tr>
137          <tr>
138            <td width="100"> </td>
139            <th>
140<span class="argument"><CODE>minFilter</CODE></span>
141            </th>
142<td>A texture's <CODE>MinFilter</CODE> setting. Type is <a href="../../../../nn_gx_CTR_Pica/PicaDataProcTexFilter.html"><CODE>PicaDataProcTexFilter</CODE></a>. Corresponds to the <CODE>dmp_Texture[3].ptMinFilter</CODE> uniform.</td>
143          </tr>
144          <tr>
145            <td width="100"> </td>
146            <th>
147<span class="argument">texBias</span>
148            </th>
149<td>The color lookup table's LOD bias. Type is <CODE>f32</CODE>, value range is <CODE>[0.0, 6.0]</CODE>, default value is <CODE>0.5f</CODE>. Corresponds to the <CODE>dmp_Texture[3].texBias</CODE> uniform.</td>
150          </tr>
151          <tr>
152            <td width="100"> </td>
153            <th>
154<span class="argument">texOffset</span>
155            </th>
156<td>Specifies the starting element of the partial array in use. Type is <CODE>u8</CODE>, value range is <CODE>[0, 128]</CODE>, default value is <CODE>0</CODE>. Corresponds to the <CODE>dmp_Texture[3].ptTexOffset</CODE> uniform.</td>
157          </tr>
158          <tr>
159            <td width="100"> </td>
160            <th>
161<span class="argument">texWidth</span>
162            </th>
163<td>Specifies the data width of the lookup table. Type is <CODE>u8</CODE>, value range is <CODE>[0, 128]</CODE>, defalt value is <CODE>0</CODE>. Corresponds to the <CODE>dmp_Texture[3].ptTexWidth</CODE> uniform.</td>
164          </tr>
165          <tr>
166            <td width="100"> </td>
167            <th>
168<span class="argument">isEnableNoise</span>
169            </th>
170<td>Specifies whether to enable noise. Type is <CODE>bool</CODE>, default value is <CODE>false</CODE>. Corresponds to the <CODE>dmp_Texture[3].ptNoiseEnable</CODE> uniform.</td>
171          </tr>
172          <tr>
173            <td width="100"> </td>
174            <th>
175<span class="argument">noiseUAmplitude</span>
176            </th>
177<td>Sets the amplitude of a texture's U-direction noise. Type is <CODE>f32</CODE>, default value is <CODE>0.0f</CODE>. Corresponds to the <CODE>dmp_Texture[3].ptNoiseU[2]</CODE> uniform.</td>
178          </tr>
179          <tr>
180            <td width="100"> </td>
181            <th>
182<span class="argument">noiseVAmplitude</span>
183            </th>
184<td>Sets the amplitude of a texture's V-direction noise. Type is <CODE>f32</CODE>, default value is <CODE>0.0f</CODE>. Corresponds to the <CODE>dmp_Texture[3].ptNoiseV[2]</CODE> uniform.</td>
185          </tr>
186          <tr>
187            <td width="100"> </td>
188            <th>
189<span class="argument">noiseUFrequency</span>
190            </th>
191<td>Sets the frequency of a texture's U-direction noise. Type is <CODE>f32</CODE>, default value is <CODE>0.0f</CODE>. Corresponds to the <CODE>dmp_Texture[3].ptNoiseU[0]</CODE> uniform.</td>
192          </tr>
193          <tr>
194            <td width="100"> </td>
195            <th>
196<span class="argument">noiseVFrequency</span>
197            </th>
198<td>Sets the frequency of a texture's V-direction noise. Type is <CODE>f32</CODE>, default value is <CODE>0.0f</CODE>. Corresponds to the <CODE>dmp_Texture[3].ptNoiseV[0]</CODE> uniform.</td>
199          </tr>
200          <tr>
201            <td width="100"> </td>
202            <th>
203<span class="argument">noiseUPhase</span>
204            </th>
205<td>Sets the phase of a texture's U-direction noise. Type is <CODE>f32</CODE>, default value is <CODE>0.0f</CODE>. Corresponds to the <CODE>dmp_Texture[3].ptNoiseU[1]</CODE> uniform.</td>
206          </tr>
207          <tr>
208            <td width="100"> </td>
209            <th>
210<span class="argument">noiseVPhase</span>
211            </th>
212<td>Sets the phase of a texture's V-direction noise. Type is <CODE>f32</CODE>, default value is <CODE>0.0f</CODE>. Corresponds to the <CODE>dmp_Texture[3].ptNoiseV[1]</CODE> uniform.</td>
213          </tr> </table>
214      </div>
215    </a> <a name="function" id="function">
216<h2>Member Functions</h2>
217      <div class="section">
218        <table class="members">
219          <tr>
220            <td width="100">  </td>
221            <th>
222<a href="../../../../nn/gr/CTR/ProcedureTexture/SetNoiseLookUpTable.html"><CODE>SetNoiseLookUpTable</CODE></a>
223            </th>
224<td>Sets the lookup table for the continuous noise function.</td>
225          </tr>
226          <tr>
227            <td width="100">  </td>
228            <th>
229<a href="../../../../nn/gr/CTR/ProcedureTexture/SetRgbMapLookUpTable.html"><CODE>SetRgbMapLookUpTable</CODE></a>
230            </th>
231<td>Sets the lookup table for the RGB mapping function.</td>
232          </tr>
233          <tr>
234            <td width="100">  </td>
235            <th>
236<a href="../../../../nn/gr/CTR/ProcedureTexture/SetAlphaMapLookUpTable.html"><CODE>SetAlphaMapLookUpTable</CODE></a>
237            </th>
238<td>Sets the lookup table for the alpha mapping function.</td>
239          </tr>
240          <tr>
241            <td width="100">  </td>
242            <th>
243<a href="../../../../nn/gr/CTR/ProcedureTexture/SetRedLookUpTable.html"><CODE>SetRedLookUpTable</CODE></a>
244            </th>
245<td>Sets the color lookup table for the red component.</td>
246          </tr>
247          <tr>
248            <td width="100">  </td>
249            <th>
250<a href="../../../../nn/gr/CTR/ProcedureTexture/SetGreenLookUpTable.html"><CODE>SetGreenLookUpTable</CODE></a>
251            </th>
252<td>Sets the color lookup table for the green component.</td>
253          </tr>
254          <tr>
255            <td width="100">  </td>
256            <th>
257<a href="../../../../nn/gr/CTR/ProcedureTexture/SetBlueLookUpTable.html"><CODE>SetBlueLookUpTable</CODE></a>
258            </th>
259<td>Sets the color lookup table for the blue component.</td>
260          </tr>
261          <tr>
262            <td width="100">  </td>
263            <th>
264<a href="../../../../nn/gr/CTR/ProcedureTexture/SetAlphaLookUpTable.html"><CODE>SetAlphaLookUpTable</CODE></a>
265            </th>
266<td>Sets the color lookup table for the alpha component.</td>
267          </tr>
268          <tr>
269            <td width="100">  </td>
270            <th>
271<a href="../../../../nn/gr/CTR/ProcedureTexture/MakeAllCommand.html"><CODE>MakeAllCommand</CODE></a>
272            </th>
273<td>Generates all commands for configuring procedural texture registers.</td>
274          </tr>
275          <tr>
276            <td width="100">  </td>
277            <th>
278<a href="../../../../nn/gr/CTR/ProcedureTexture/MakeConfigCommand.html"><CODE>MakeConfigCommand</CODE></a>
279            </th>
280<td>Generates all commands for configuring procedural textures. (Does not generate lookup table commands.)</td>
281          </tr>
282          <tr>
283            <td width="100">  </td>
284            <th>
285<a href="../../../../nn/gr/CTR/ProcedureTexture/MakeProcedureTextureModeCommand.html"><CODE>MakeProcedureTextureModeCommand</CODE></a>
286            </th>
287<td>Generates just the commands for configuring procedural texture mode settings.</td>
288          </tr>
289          <tr>
290            <td width="100">  </td>
291            <th>
292<a href="../../../../nn/gr/CTR/ProcedureTexture/MakeTextureCommand.html"><CODE>MakeTextureCommand</CODE></a>
293            </th>
294<td>Generates just the commands for configuring texture settings for a procedural texture.</td>
295          </tr>
296          <tr>
297            <td width="100">  </td>
298            <th>
299<a href="../../../../nn/gr/CTR/ProcedureTexture/MakeNoiseCommand.html"><CODE>MakeNoiseCommand</CODE></a>
300            </th>
301<td>Generates just the commands for configuring procedural texture noise settings.</td>
302          </tr>
303          <tr>
304            <td width="100">  </td>
305            <th>
306<a href="../../../../nn/gr/CTR/ProcedureTexture/MakeTableCommand.html"><CODE>MakeTableCommand</CODE></a>
307            </th>
308<td>Generates just the commands for configuring procedural texture lookup tables.</td>
309          </tr>
310          <tr>
311            <td width="100">  </td>
312            <th>
313<a href="../../../../nn/gr/CTR/ProcedureTexture/ProcedureTexture.html"><CODE>ProcedureTexture</CODE></a>
314            </th>
315<td>Constructor of class for generating procedural texture commands.</td>
316          </tr>
317          <tr>
318            <td width="100">
319<span class="static_style" title="static">S</span> </td>
320            <th>
321<a href="../../../../nn/gr/CTR/ProcedureTexture/MakeDummyCommand.html"><CODE>MakeDummyCommand</CODE></a>
322            </th>
323<td>Generates dummy commands to register 0x80 required before updating procedural texture registers.</td>
324          </tr> </table>
325      </div>
326    </a>
327<h2>Revision History</h2>
328    <div class="section">
329      <dl class="history">
330        <dt>2010/10/25</dt>
331<dd>Initial version.<br />
332        </dd>
333      </dl>
334    </div>
335  <hr><p>CONFIDENTIAL</p></body>
336</html>