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