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>nw::lyt::Material</title> 51 </head> 52 <body> 53 <h1>nw::lyt::Material Class</h1> 54 <h2>Syntax</h2> 55 <div class="section"> 56 <pre class="definition">class Material</pre> 57 </div> 58 <h2>Description</h2> 59 <div class="section"> 60 <p>The material information class.</p> 61 </div> 62 <a name="function" id="function"> 63 <h2>Member Functions</h2> 64 <div class="section"> 65 <table class="members"> 66 <tr> 67 <th class="category" colspan="3">Constructors and Destructors</th> 68 </tr> 69 <tr> 70 <td width="100"> </td> 71 <th> 72 <a href="../../../nw/lyt/Material/Material.html">Material</a> 73 </th> 74 <td>Constructor.</td> 75 </tr> 76 <tr> 77 <td width="100"> <span class="virtual_style" title="virtual">V</span> 78 </td> 79 <th> 80 <a href="../../../nw/lyt/Material/~Material.html"><CODE>~Material</CODE></a> 81 </th> 82 <td>Destructor.</td> 83 </tr> 84 <tr> 85 <th class="category" colspan="3">Set/Get</th> 86 </tr> 87 <tr> 88 <td width="100"> </td> 89 <th> 90 <a href="../../../nw/lyt/Material/ReserveMem.html">ReserveMem</a> 91 </th> 92 <td>Allocates the region that holds the material settings.</td> 93 </tr> 94 <tr> 95 <td width="100"> </td> 96 <th> 97 <a href="../../../nw/lyt/Material/GetTexMapCap.html">GetTexMapCap</a> 98 </th> 99 <td>Gets the upper limit on the number of textures that can be stored within the material.</td> 100 </tr> 101 <tr> 102 <td width="100"> </td> 103 <th> 104 <a href="../../../nw/lyt/Material/GetTexSRTCap.html">GetTexSRTCap</a> 105 </th> 106 <td>Gets the upper limit on the number of texture SRT conversion matrices that can be stored within the material.</td> 107 </tr> 108 <tr> 109 <td width="100"> </td> 110 <th> 111 <a href="../../../nw/lyt/Material/GetTexCoordGenCap.html">GetTexCoordGenCap</a> 112 </th> 113 <td>Gets the upper limit on the number of texture coordinate generations that can be stored within the material.</td> 114 </tr> 115 <tr> 116 <td width="100"> </td> 117 <th> 118 <a href="../../../nw/lyt/Material/GetTevStageCap.html">GetTevStageCap</a> 119 </th> 120 <td>Gets the upper limit on the number of TEV stages that can be stored within the material.</td> 121 </tr> 122 <tr> 123 <td width="100"> </td> 124 <th> 125 <a href="../../../nw/lyt/Material/IsAlphaCompareCap.html">IsAlphaCompareCap</a> 126 </th> 127 <td>Gets whether alpha compare settings can be stored in the material.</td> 128 </tr> 129 <tr> 130 <td width="100"> </td> 131 <th> 132 <a href="../../../nw/lyt/Material/IsBlendModeCap.html">IsBlendModeCap</a> 133 </th> 134 <td>Gets whether blend mode settings can be stored in the material.</td> 135 </tr> 136 <tr> 137 <td width="100"> </td> 138 <th> 139 <a href="../../../nw/lyt/Material/GetName.html">GetName</a> 140 </th> 141 <td>Gets the name of the material.</td> 142 </tr> 143 <tr> 144 <td width="100"> </td> 145 <th> 146 <a href="../../../nw/lyt/Material/SetName.html">SetName</a> 147 </th> 148 <td>Sets the material's name.</td> 149 </tr> 150 <tr> 151 <th class="category" colspan="3">Textures</th> 152 </tr> 153 <tr> 154 <td width="100"> </td> 155 <th> 156 <a href="../../../nw/lyt/Material/GetTexMapNum.html">GetTexMapNum</a> 157 </th> 158 <td>Gets the number of textures.</td> 159 </tr> 160 <tr> 161 <td width="100"> </td> 162 <th> 163 <a href="../../../nw/lyt/Material/SetTexMapNum.html">SetTexMapNum</a> 164 </th> 165 <td>Sets the number of textures.</td> 166 </tr> 167 <tr> 168 <td width="100"> </td> 169 <th> 170 <a href="../../../nw/lyt/Material/GetTexCoordGenNum.html">GetTexCoordGenNum</a> 171 </th> 172 <td>Gets the number texture coordinate generations.</td> 173 </tr> 174 <tr> 175 <td width="100"> </td> 176 <th> 177 <a href="../../../nw/lyt/Material/SetTexCoordGenNum.html">SetTexCoordGenNum</a> 178 </th> 179 <td>Sets the number of texture coordinate generations.</td> 180 </tr> 181 <tr> 182 <td width="100"> </td> 183 <th> 184 <a href="../../../nw/lyt/Material/GetTexSRTNum.html">GetTexSRTNum</a> 185 </th> 186 <td>Gets the number of texture SRTs.</td> 187 </tr> 188 <tr> 189 <td width="100"> </td> 190 <th> 191 <a href="../../../nw/lyt/Material/SetTexSRTNum.html">SetTexSRTNum</a> 192 </th> 193 <td>Sets the number of texture SRTs.</td> 194 </tr> 195 <tr> 196 <td width="100"> </td> 197 <th> 198 <a href="../../../nw/lyt/Material/GetTexMap.html">GetTexMap</a> 199 </th> 200 <td>Gets the texture data.</td> 201 </tr> 202 <tr> 203 <td width="100"> </td> 204 <th> 205 <a href="../../../nw/lyt/Material/SetTexMap.html">SetTexMap</a> 206 </th> 207 <td>Sets the texture data.</td> 208 </tr> 209 <tr> 210 <td width="100"> </td> 211 <th> 212 <a href="../../../nw/lyt/Material/GetTexSRT.html">GetTexSRT</a> 213 </th> 214 <td>Gets the texture SRT matrix.</td> 215 </tr> 216 <tr> 217 <td width="100"> </td> 218 <th> 219 <a href="../../../nw/lyt/Material/SetTexSRT.html">SetTexSRT</a> 220 </th> 221 <td>Sets the texture SRT matrix.</td> 222 </tr> 223 <tr> 224 <td width="100"> </td> 225 <th> 226 <a href="../../../nw/lyt/Material/GetTexCoordGen.html">GetTexCoordGen</a> 227 </th> 228 <td>Gets a texture coordinate generation.</td> 229 </tr> 230 <tr> 231 <td width="100"> </td> 232 <th> 233 <a href="../../../nw/lyt/Material/SetTexCoordGen.html">SetTexCoordGen</a> 234 </th> 235 <td>Sets texture coordinate generation.</td> 236 </tr> 237 <tr> 238 <td width="100"> </td> 239 <th> 240 <a href="../../../nw/lyt/Material/GetTexSRTElement.html">GetTexSRTElement</a> 241 </th> 242 <td>Gets texture SRT parameters by specifying a component.</td> 243 </tr> 244 <tr> 245 <td width="100"> </td> 246 <th> 247 <a href="../../../nw/lyt/Material/SetTexSRTElement.html">SetTexSRTElement</a> 248 </th> 249 <td>Sets textures SRT parameters by specifying a component.</td> 250 </tr> 251 <tr> 252 <th class="category" colspan="3">TEV</th> 253 </tr> 254 <tr> 255 <td width="100"> </td> 256 <th> 257 <a href="../../../nw/lyt/Material/GetTevStageNum.html">GetTevStageNum</a> 258 </th> 259 <td>Gets the number of TEV stages.</td> 260 </tr> 261 <tr> 262 <td width="100"> </td> 263 <th> 264 <a href="../../../nw/lyt/Material/SetTevStageNum.html">SetTevStageNum</a> 265 </th> 266 <td>Sets the number of TEV stages.</td> 267 </tr> 268 <tr> 269 <td width="100"> </td> 270 <th> 271 <a href="../../../nw/lyt/Material/GetColor.html">GetColor</a> 272 </th> 273 <td>Gets the color.</td> 274 </tr> 275 <tr> 276 <td width="100"> </td> 277 <th> 278 <a href="../../../nw/lyt/Material/SetColor.html">SetColor</a> 279 </th> 280 <td>Sets the color.</td> 281 </tr> 282 <tr> 283 <td width="100"> </td> 284 <th> 285 <a href="../../../nw/lyt/Material/GetColorElement.html">GetColorElement</a> 286 </th> 287 <td>Gets the TEV color component based on the color type specified.</td> 288 </tr> 289 <tr> 290 <td width="100"> </td> 291 <th> 292 <a href="../../../nw/lyt/Material/SetColorElement.html">SetColorElement</a> 293 </th> 294 <td>Sets the TEV color component based on the color type specified.</td> 295 </tr> 296 <tr> 297 <td width="100"> </td> 298 <th> 299 <a href="../../../nw/lyt/Material/GetTevStage.html">GetTevStage</a> 300 </th> 301 <td>Gets a TEV stage.</td> 302 </tr> 303 <tr> 304 <td width="100"> </td> 305 <th> 306 <a href="../../../nw/lyt/Material/SetTevStage.html">SetTevStage</a> 307 </th> 308 <td>Sets a TEV stage.</td> 309 </tr> 310 <tr> 311 <th class="category" colspan="3">Material</th> 312 </tr> 313 <tr> 314 <td width="100"> </td> 315 <th> 316 <a href="../../../nw/lyt/Material/GetAlphaCompare.html">GetAlphaCompare</a> 317 </th> 318 <td>Gets the alpha compare setting.</td> 319 </tr> 320 <tr> 321 <td width="100"> </td> 322 <th> 323 <a href="../../../nw/lyt/Material/SetAlphaCompare.html">SetAlphaCompare</a> 324 </th> 325 <td>Sets the alpha compare setting.</td> 326 </tr> 327 <tr> 328 <td width="100"> </td> 329 <th> 330 <a href="../../../nw/lyt/Material/GetBlendMode.html">GetBlendMode</a> 331 </th> 332 <td>Gets the blend mode setting.</td> 333 </tr> 334 <tr> 335 <td width="100"> </td> 336 <th> 337 <a href="../../../nw/lyt/Material/SetBlendMode.html">SetBlendMode</a> 338 </th> 339 <td>Sets the blend mode setting.</td> 340 </tr> 341 <tr> 342 <td width="100"> </td> 343 <th> 344 <a href="../../../nw/lyt/Material/GetTextureOnly.html">GetTextureOnly</a> 345 </th> 346 <td>Gets whether to use textures only.</td> 347 </tr> 348 <tr> 349 <td width="100"> </td> 350 <th> 351 <a href="../../../nw/lyt/Material/SetTextureOnly.html">SetTextureOnly</a> 352 </th> 353 <td>Sets whether to use textures only.</td> 354 </tr> 355 <tr> 356 <th class="category" colspan="3">Animation</th> 357 </tr> 358 <tr> 359 <td width="100"> <span class="virtual_style" title="virtual">V</span> 360 </td> 361 <th> 362 <a href="../../../nw/lyt/Material/BindAnimation.html">BindAnimation</a> 363 </th> 364 <td>Binds animations.</td> 365 </tr> 366 <tr> 367 <td width="100"> <span class="virtual_style" title="virtual">V</span> 368 </td> 369 <th> 370 <a href="../../../nw/lyt/Material/UnbindAnimation.html">UnbindAnimation</a> 371 </th> 372 <td>Clears a bound animation.</td> 373 </tr> 374 <tr> 375 <td width="100"> <span class="virtual_style" title="virtual">V</span> 376 </td> 377 <th> 378 <a href="../../../nw/lyt/Material/UnbindAllAnimation.html">UnbindAllAnimation</a> 379 </th> 380 <td>Clears all bound animations.</td> 381 </tr> 382 <tr> 383 <td width="100"> <span class="virtual_style" title="virtual">V</span> 384 </td> 385 <th> 386 <a href="../../../nw/lyt/Material/Animate.html">Animate</a> 387 </th> 388 <td>Calculates the animation result.</td> 389 </tr> 390 <tr> 391 <td width="100"> </td> 392 <th> 393 <a href="../../../nw/lyt/Material/AddAnimationLink.html">AddAnimationLink</a> 394 </th> 395 <td>Adds animation link information.</td> 396 </tr> 397 <tr> 398 <td width="100"> <span class="virtual_style" title="virtual">V</span> 399 </td> 400 <th> 401 <a href="../../../nw/lyt/Material/FindAnimationLink.html">FindAnimationLink</a> 402 </th> 403 <td>Searches for animation link information.</td> 404 </tr> 405 <tr> 406 <td width="100"> <span class="virtual_style" title="virtual">V</span> 407 </td> 408 <th> 409 <a href="../../../nw/lyt/Material/SetAnimationEnable.html">SetAnimationEnable</a> 410 </th> 411 <td>Sets the animation enable/disable state.</td> 412 </tr> 413 <tr> 414 <td width="100"> </td> 415 <th> 416 <a href="../../../nw/lyt/Material/GetAnimationList.html">GetAnimationList</a> 417 </th> 418 <td>Gets a list of bound animations.</td> 419 </tr> 420 <tr> 421 <th class="category" colspan="3">Other</th> 422 </tr> 423 <tr> 424 <td width="100"> </td> 425 <th> 426 <a href="../../../nw/lyt/Material/IsUserAllocated.html">IsUserAllocated</a> 427 </th> 428 <td>Determines whether the user constructed the material.</td> 429 </tr> 430 <tr> 431 <td width="100"> </td> 432 <th> 433 <a href="../../../nw/lyt/Material/SetUserAllocated.html">SetUserAllocated</a> 434 </th> 435 <td>Declares that the material was constructed by the user.</td> 436 </tr> 437 <tr> 438 <td width="100"> 439 <span class="protected_style" title="protected">protected</span> </td> 440 <th> 441 <a href="../../../nw/lyt/Material/GetTexMapAry.html">GetTexMapAry</a> 442 </th> 443 <td>Gets an array of texture graphics settings.</td> 444 </tr> 445 <tr> 446 <td width="100"> 447 <span class="protected_style" title="protected">protected</span> </td> 448 <th> 449 <a href="../../../nw/lyt/Material/GetTexSRTAry.html">GetTexSRTAry</a> 450 </th> 451 <td>Gets an array of texture coordinate transform settings.</td> 452 </tr> 453 <tr> 454 <td width="100"> 455 <span class="protected_style" title="protected">protected</span> </td> 456 <th> 457 <a href="../../../nw/lyt/Material/GetTexCoordGenAry.html">GetTexCoordGenAry</a> 458 </th> 459 <td>Gets an array of texture coordinate generation settings.</td> 460 </tr> 461 <tr> 462 <td width="100"> 463 <span class="protected_style" title="protected">protected</span> </td> 464 <th> 465 <a href="../../../nw/lyt/Material/GetAlphaComparePtr.html">GetAlphaComparePtr</a> 466 </th> 467 <td>Gets the address of alpha compare settings.</td> 468 </tr> 469 <tr> 470 <td width="100"> 471 <span class="protected_style" title="protected">protected</span> </td> 472 <th> 473 <a href="../../../nw/lyt/Material/GetBlendModePtr.html">GetBlendModePtr</a> 474 </th> 475 <td>Gets the address of blend mode settings.</td> 476 </tr> 477 <tr> 478 <td width="100"> 479 <span class="protected_style" title="protected">protected</span> </td> 480 <th> 481 <a href="../../../nw/lyt/Material/GetTevStageAry.html">GetTevStageAry</a> 482 </th> 483 <td>Gets the address of TEV settings.</td> 484 </tr> </table> 485 </div> 486 </a> 487 <h2>Revision History</h2> 488 <div class="section"> 489 <dl class="history"> 490 <dt>2009/09/18</dt> 491 <dd>Initial version.<br /> 492 </dd> 493 </dl> 494 </div> 495 <hr><p>CONFIDENTIAL</p></body> 496</html>