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