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