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::ProcedureTexture</title>
49  </head>
50  <body>
51<h1><CODE>nn::gr::CTR::ProcedureTexture</CODE> Class</h1>
52<h2>Syntax</h2>
53    <div class="section">
54      <pre class="definition">class ProcedureTexture</pre>
55    </div>
56<h2>Description</h2>
57    <div class="section">
58<p>Class for generating procedural texture commands.</p><!-- write here --></div>
59    <a name="enum" id="enum">
60<h2>Enumerated Types</h2>
61      <div class="section">
62        <table class="members">
63          <tr>
64            <td width="100"> </td>
65            <th>
66<a href="../../../../nn/gr/CTR/ProcedureTexture/ProcedureTextureColorShift.html"><CODE>ProcedureTextureColorShift</CODE></a>
67            </th>
68<td>Constants related to lookup tables for procedural textures.</td>
69          </tr> </table>
70      </div>
71    </a> <a name="constant" id="constant">
72<h2>Member Constants</h2>
73      <div class="section">
74        <table class="members">
75          <tr>
76            <td width="100">
77<span class="static_style" title="static">S</span>
78            </td>
79            <th>
80<span class="argument"><a href="../../../../nn/gr/CTR/ProcedureTexture/PROCTEX_LOOKUP_TABLE_ELEMENT_NUM.html"><CODE>PROCTEX_LOOKUP_TABLE_ELEMENT_NUM</CODE></a></span>
81            </th>
82<td>The lookup table stores 128 data elements.</td>
83          </tr>
84          <tr>
85            <td width="100">
86<span class="static_style" title="static">S</span>
87            </td>
88            <th>
89<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>
90            </th>
91<td>The color lookup table stores 256 data elements.</td>
92          </tr>
93          <tr>
94            <td width="100">
95<span class="protected_style" title="protected">protected</span> <span class="static_style" title="static">S</span>
96            </td>
97            <th>
98<span class="argument"><a href="../../../../nn/gr/CTR/ProcedureTexture/PROCTEX_LOOKUP_TABLE_OPTION_CMD_NUM.html"><CODE>PROCTEX_LOOKUP_TABLE_OPTION_CMD_NUM</CODE></a></span>
99            </th>
100<td>The size of the commands added to send a lookup table.</td>
101          </tr>
102          <tr>
103            <td width="100">
104<span class="protected_style" title="protected">protected</span> <span class="static_style" title="static">S</span>
105            </td>
106            <th>
107<span class="argument"><a href="../../../../nn/gr/CTR/ProcedureTexture/PROCTEX_LOOKUP_TABLE_CMD_NUM.html"><CODE>PROCTEX_LOOKUP_TABLE_CMD_NUM</CODE></a></span>
108            </th>
109<td>The size of an array that holds commands used to send a lookup table.</td>
110          </tr>
111          <tr>
112            <td width="100">
113<span class="protected_style" title="protected">protected</span> <span class="static_style" title="static">S</span>
114            </td>
115            <th>
116<span class="argument"><a href="../../../../nn/gr/CTR/ProcedureTexture/PROCTEX_COLOR_LOOKUP_TABLE_OPTION_CMD_NUM.html"><CODE>PROCTEX_COLOR_LOOKUP_TABLE_OPTION_CMD_NUM</CODE></a></span>
117            </th>
118<td>The size of the commands added to send a color lookup table.</td>
119          </tr>
120          <tr>
121            <td width="100">
122<span class="protected_style" title="protected">protected</span> <span class="static_style" title="static">S</span>
123            </td>
124            <th>
125<span class="argument"><a href="../../../../nn/gr/CTR/ProcedureTexture/PROCTEX_COLOR_LOOKUP_TABLE_CMD_NUM.html"><CODE>PROCTEX_COLOR_LOOKUP_TABLE_CMD_NUM</CODE></a></span>
126            </th>
127<td>The size of an array that holds commands used to send a color lookup table.</td>
128          </tr> </table>
129      </div>
130    </a> <a name="variable" id="variable">
131<h2>Member Variables</h2>
132      <div class="section">
133        <table class="members">
134          <tr>
135            <td width="100"> </td>
136            <th>
137<span class="argument">rgbMap</span>
138            </th>
139<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>
140          </tr>
141          <tr>
142            <td width="100"> </td>
143            <th>
144<span class="argument">alphaMap</span>
145            </th>
146<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>
147          </tr>
148          <tr>
149            <td width="100"> </td>
150            <th>
151<span class="argument">alphaSeparate</span>
152            </th>
153<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>
154          </tr>
155          <tr>
156            <td width="100"> </td>
157            <th>
158<span class="argument">clampU</span>
159            </th>
160<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>
161          </tr>
162          <tr>
163            <td width="100"> </td>
164            <th>
165<span class="argument">clampV</span>
166            </th>
167<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>
168          </tr>
169          <tr>
170            <td width="100"> </td>
171            <th>
172<span class="argument">shiftU</span>
173            </th>
174<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>
175          </tr>
176          <tr>
177            <td width="100"> </td>
178            <th>
179<span class="argument">shiftV</span>
180            </th>
181<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>
182          </tr>
183          <tr>
184            <td width="100"> </td>
185            <th>
186<span class="argument"><CODE>minFilter</CODE></span>
187            </th>
188<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>
189          </tr>
190          <tr>
191            <td width="100"> </td>
192            <th>
193<span class="argument">texBias</span>
194            </th>
195<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>
196          </tr>
197          <tr>
198            <td width="100"> </td>
199            <th>
200<span class="argument">texOffset</span>
201            </th>
202<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>
203          </tr>
204          <tr>
205            <td width="100"> </td>
206            <th>
207<span class="argument">texWidth</span>
208            </th>
209<td>Specifies the width of lookup table data. 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].ptTexWidth</CODE> uniform.</td>
210          </tr>
211          <tr>
212            <td width="100"> </td>
213            <th>
214<span class="argument">isEnableNoise</span>
215            </th>
216<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>
217          </tr>
218          <tr>
219            <td width="100"> </td>
220            <th>
221<span class="argument">noiseUAmplitude</span>
222            </th>
223<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>
224          </tr>
225          <tr>
226            <td width="100"> </td>
227            <th>
228<span class="argument">noiseVAmplitude</span>
229            </th>
230<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>
231          </tr>
232          <tr>
233            <td width="100"> </td>
234            <th>
235<span class="argument">noiseUFrequency</span>
236            </th>
237<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>
238          </tr>
239          <tr>
240            <td width="100"> </td>
241            <th>
242<span class="argument">noiseVFrequency</span>
243            </th>
244<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>
245          </tr>
246          <tr>
247            <td width="100"> </td>
248            <th>
249<span class="argument">noiseUPhase</span>
250            </th>
251<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>
252          </tr>
253          <tr>
254            <td width="100"> </td>
255            <th>
256<span class="argument">noiseVPhase</span>
257            </th>
258<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>
259          </tr>
260          <tr>
261            <td width="100">
262<span class="protected_style" title="protected">protected</span> </td>
263            <th>
264<span class="argument">m_NoiseLookUpTableCommand</span>
265            </th>
266<td>Holds the continuous noise function's lookup table, converted into rendering command format. Type is <CODE>u32[]</CODE>.</td>
267          </tr>
268          <tr>
269            <td width="100">
270<span class="protected_style" title="protected">protected</span> </td>
271            <th>
272<span class="argument">m_RgbMapLookUpTableCommand</span>
273            </th>
274<td>Holds the RGB mapping function's lookup table, converted into rendering command format. Type is <CODE>u32[]</CODE>.</td>
275          </tr>
276          <tr>
277            <td width="100">
278<span class="protected_style" title="protected">protected</span> </td>
279            <th>
280<span class="argument">m_AlphaMapLookUpTableCommand</span>
281            </th>
282<td>Holds the alpha mapping function's lookup table, converted into rendering command format. Type is <CODE>u32[]</CODE>.</td>
283          </tr>
284          <tr>
285            <td width="100">
286<span class="protected_style" title="protected">protected</span> </td>
287            <th>
288<span class="argument">m_ColorLookUpTableCommand</span>
289            </th>
290<td>Holds a color lookup table that has been converted into rendering command format. Type is <CODE>u32[]</CODE>.</td>
291          </tr>
292          <tr>
293            <td width="100">
294<span class="protected_style" title="protected">protected</span> </td>
295            <th>
296<span class="argument">m_ColorDiffLookUpTableCommand</span>
297            </th>
298<td>Holds the difference values for a color lookup table, converted into rendering command format. Type is <CODE>u32[]</CODE>.</td>
299          </tr> </table>
300      </div>
301    </a> <a name="function" id="function">
302<h2>Member Functions</h2>
303      <div class="section">
304        <table class="members">
305          <tr>
306            <td width="100">  </td>
307            <th>
308<a href="../../../../nn/gr/CTR/ProcedureTexture/SetNoiseLookUpTable.html"><CODE>SetNoiseLookUpTable</CODE></a>
309            </th>
310<td>Sets the lookup table for the continuous noise function.</td>
311          </tr>
312          <tr>
313            <td width="100">  </td>
314            <th>
315<a href="../../../../nn/gr/CTR/ProcedureTexture/SetRgbMapLookUpTable.html"><CODE>SetRgbMapLookUpTable</CODE></a>
316            </th>
317<td>Sets the lookup table for the RGB mapping function.</td>
318          </tr>
319          <tr>
320            <td width="100">  </td>
321            <th>
322<a href="../../../../nn/gr/CTR/ProcedureTexture/SetAlphaMapLookUpTable.html"><CODE>SetAlphaMapLookUpTable</CODE></a>
323            </th>
324<td>Sets the lookup table for the alpha mapping function.</td>
325          </tr>
326          <tr>
327            <td width="100">  </td>
328            <th>
329<a href="../../../../nn/gr/CTR/ProcedureTexture/SetRedLookUpTable.html"><CODE>SetRedLookUpTable</CODE></a>
330            </th>
331<td>Sets the color lookup table for the red component.</td>
332          </tr>
333          <tr>
334            <td width="100">  </td>
335            <th>
336<a href="../../../../nn/gr/CTR/ProcedureTexture/SetGreenLookUpTable.html"><CODE>SetGreenLookUpTable</CODE></a>
337            </th>
338<td>Sets the color lookup table for the green component.</td>
339          </tr>
340          <tr>
341            <td width="100">  </td>
342            <th>
343<a href="../../../../nn/gr/CTR/ProcedureTexture/SetBlueLookUpTable.html"><CODE>SetBlueLookUpTable</CODE></a>
344            </th>
345<td>Sets the color lookup table for the blue component.</td>
346          </tr>
347          <tr>
348            <td width="100">  </td>
349            <th>
350<a href="../../../../nn/gr/CTR/ProcedureTexture/SetAlphaLookUpTable.html"><CODE>SetAlphaLookUpTable</CODE></a>
351            </th>
352<td>Sets the color lookup table for the alpha component.</td>
353          </tr>
354          <tr>
355            <td width="100">  </td>
356            <th>
357<a href="../../../../nn/gr/CTR/ProcedureTexture/MakeAllCommand.html"><CODE>MakeAllCommand</CODE></a>
358            </th>
359<td>Generates all commands for configuring procedural texture registers.</td>
360          </tr>
361          <tr>
362            <td width="100">  </td>
363            <th>
364<a href="../../../../nn/gr/CTR/ProcedureTexture/MakeConfigCommand.html"><CODE>MakeConfigCommand</CODE></a>
365            </th>
366<td>Generates all commands for configuring procedural textures. (Does not generate lookup table commands.)</td>
367          </tr>
368          <tr>
369            <td width="100">  </td>
370            <th>
371<a href="../../../../nn/gr/CTR/ProcedureTexture/MakeProcedureTextureModeCommand.html"><CODE>MakeProcedureTextureModeCommand</CODE></a>
372            </th>
373<td>Generates just the commands for configuring procedural texture mode settings.</td>
374          </tr>
375          <tr>
376            <td width="100">  </td>
377            <th>
378<a href="../../../../nn/gr/CTR/ProcedureTexture/MakeTextureCommand.html"><CODE>MakeTextureCommand</CODE></a>
379            </th>
380<td>Generates just the commands for configuring texture settings for a procedural texture.</td>
381          </tr>
382          <tr>
383            <td width="100">  </td>
384            <th>
385<a href="../../../../nn/gr/CTR/ProcedureTexture/MakeNoiseCommand.html"><CODE>MakeNoiseCommand</CODE></a>
386            </th>
387<td>Generates just the commands for configuring procedural texture noise settings.</td>
388          </tr>
389          <tr>
390            <td width="100">  </td>
391            <th>
392<a href="../../../../nn/gr/CTR/ProcedureTexture/MakeTableCommand.html"><CODE>MakeTableCommand</CODE></a>
393            </th>
394<td>Generates just the commands for configuring procedural texture lookup tables.</td>
395          </tr>
396          <tr>
397            <td width="100">  </td>
398            <th>
399<a href="../../../../nn/gr/CTR/ProcedureTexture/ProcedureTexture.html"><CODE>ProcedureTexture</CODE></a>
400            </th>
401<td>Constructor of class for generating procedural texture commands.</td>
402          </tr>
403          <tr>
404            <td width="100">
405<span class="static_style" title="static">S</span> </td>
406            <th>
407<a href="../../../../nn/gr/CTR/ProcedureTexture/MakeDummyCommand.html"><CODE>MakeDummyCommand</CODE></a>
408            </th>
409<td>Generates dummy commands to register 0x80 required before updating procedural texture registers.</td>
410          </tr>
411          <tr>
412            <td width="100">
413<span class="protected_style" title="protected">protected</span>  </td>
414            <th>
415<a href="../../../../nn/gr/CTR/ProcedureTexture/SetLookUpDualTables_.html"><CODE>SetLookUpDualTables_</CODE></a>
416            </th>
417<td>Sets lookup table commands in a rendering command array.</td>
418          </tr>
419          <tr>
420            <td width="100">
421<span class="protected_style" title="protected">protected</span>  </td>
422            <th>
423<a href="../../../../nn/gr/CTR/ProcedureTexture/SetColorLookUpDualTables_.html"><CODE>SetColorLookUpDualTables_</CODE></a>
424            </th>
425<td>Sets commands for a color lookup table and difference table in a rendering command array.</td>
426          </tr>
427          <tr>
428            <td width="100">
429<span class="protected_style" title="protected">protected</span>  </td>
430            <th>
431<a href="../../../../nn/gr/CTR/ProcedureTexture/SetColorLookUpTable_.html"><CODE>SetColorLookUpTable_</CODE></a>
432            </th>
433<td>Sets color lookup table commands in a rendering command array.</td>
434          </tr>
435          <tr>
436            <td width="100">
437<span class="protected_style" title="protected">protected</span>  </td>
438            <th>
439<a href="../../../../nn/gr/CTR/ProcedureTexture/SetColorDiffLookUpTable_.html"><CODE>SetColorDiffLookUpTable_</CODE></a>
440            </th>
441<td>Sets commands for a lookup table's difference values in a rendering command array.</td>
442          </tr>
443          <tr>
444            <td width="100">
445<span class="protected_style" title="protected">protected</span>  </td>
446            <th>
447<a href="../../../../nn/gr/CTR/ProcedureTexture/GetColorDiffLookUpTable.html"><CODE>GetColorDiffLookUpTable</CODE></a>
448            </th>
449<td>Finds the difference values for a 256-element lookup table.</td>
450          </tr>
451          <tr>
452            <td width="100">
453<span class="protected_style" title="protected">protected</span>  </td>
454            <th>
455<a href="../../../../nn/gr/CTR/ProcedureTexture/GetDiffLookUpTable.html"><CODE>GetDiffLookUpTable</CODE></a>
456            </th>
457<td>Finds the difference values for a 128-element lookup table.</td>
458          </tr> </table>
459      </div>
460    </a>
461<h2>Revision History</h2>
462    <div class="section">
463      <dl class="history">
464        <dt>2010/10/25</dt>
465<dd>Initial version.<br />
466        </dd>
467      </dl>
468    </div>
469  <hr><p>CONFIDENTIAL</p></body>
470</html>
471