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::gfx::res::ResFragmentLight</title> 51 </head> 52 <body> 53 <h1><CODE><a href="../../../../nw/Overview.html">nw</a>::<a href="../../../../nw/gfx/Overview.html">gfx</a>::<a href="../../../../nw/gfx/res/Overview.html">res</a>::ResFragmentLight</CODE> Class</h1> 54 <h2>Syntax</h2> 55 <div class="section"> 56 <pre class="definition">class ResFragmentLight : public <a href="../../../../nw/gfx/res/ResLight/Overview.html">nw::gfx::res::ResLight</a></pre> 57 </div> 58 <h2>Description</h2> 59 <div class="section"> 60 <p>Binary resource class that represents fragment lights.</p> 61 </div> 62 <a name="enum" id="enum"> 63 <h2>Enumerated Types</h2> 64 <div class="section"> 65 <table class="members"> 66 <tr> 67 <td width="100"> </td> 68 <th> 69 <a href="../../../../nw/gfx/res/ResLight/Kind.html">Kind</a> 70 </th> 71 <td>Represents the type of light source for a light.(Derived from <a href="../../../../nw/gfx/res/ResLight/Overview.html"><CODE>ResLight</CODE></a>.)</td> 72 </tr> 73 <tr> 74 <td width="100"> </td> 75 <th> 76 <a href="../../../../nw/gfx/res/ResTransformNode/Flag.html">Flag</a> 77 </th> 78 <td> 79 (Derived from <a href="../../../../nw/gfx/res/ResTransformNode/Overview.html"><CODE>ResTransformNode</CODE></a>.)</td> 80 </tr> </table> 81 </div> 82 </a> <a name="function" id="function"> 83 <h2>Member Functions</h2> 84 <div class="section"> 85 <table class="members"> 86 <tr> 87 <td width="100"> </td> 88 <th> 89 <a href="../../../../nw/gfx/res/ResFragmentLight/ResFragmentLight.html">ResFragmentLight</a> 90 </th> 91 <td>Constructor.</td> 92 </tr> 93 <tr> 94 <td width="100"> </td> 95 <th> 96 <a href="../../../../nw/gfx/res/ResFragmentLight/ptr.html">ptr</a> 97 </th> 98 <td>Gets a pointer to actual data.</td> 99 </tr> 100 <tr> 101 <td width="100"> </td> 102 <th> 103 <a href="../../../../nw/gfx/res/ResFragmentLight/ref.html">ref</a> 104 </th> 105 <td>Gets the reference to the actual data.</td> 106 </tr> 107 <tr> 108 <td width="100"> </td> 109 <th> 110 <a href="../../../../nw/gfx/res/ResFragmentLight/operator==.html"><CODE>operator ==</CODE></a> 111 </th> 112 <td> 113 </td> 114 </tr> 115 <tr> 116 <td width="100"> </td> 117 <th> 118 <a href="../../../../nw/gfx/res/ResFragmentLight/operator!=.html"><CODE>operator !=</CODE></a> 119 </th> 120 <td> 121 </td> 122 </tr> 123 <tr> 124 <td width="100"> </td> 125 <th> 126 <a href="../../../../nw/gfx/res/ResFragmentLight/GetLightKind.html"><CODE>GetLightKind</CODE></a> 127 </th> 128 <td>Gets the light source type.</td> 129 </tr> 130 <tr> 131 <td width="100"> </td> 132 <th> 133 <a href="../../../../nw/gfx/res/ResFragmentLight/SetLightKind.html">SetLightKind</a> 134 </th> 135 <td>Sets the light type.</td> 136 </tr> 137 <tr> 138 <td width="100"> </td> 139 <th> 140 <a href="../../../../nw/gfx/res/ResFragmentLight/GetAmbientU32.html"><CODE>GetAmbientU32</CODE></a> 141 </th> 142 <td>Gets the ambient color of a light in RGBA8 32-bit format.</td> 143 </tr> 144 <tr> 145 <td width="100"> </td> 146 <th> 147 <a href="../../../../nw/gfx/res/ResFragmentLight/SetAmbient.html"><CODE>SetAmbient</CODE></a> 148 </th> 149 <td>Sets the ambient color of the light.</td> 150 </tr> 151 <tr> 152 <td width="100"> </td> 153 <th> 154 <a href="../../../../nw/gfx/res/ResFragmentLight/GetAmbient.html">GetAmbient</a> 155 </th> 156 <td>Gets the ambient color of the light.</td> 157 </tr> 158 <tr> 159 <td width="100"> </td> 160 <th> 161 <a href="../../../../nw/gfx/res/ResFragmentLight/GetDiffuseU32.html">GetDiffuseU32</a> 162 </th> 163 <td>Gets the diffuse color of a light in RGBA8 32-bit format.</td> 164 </tr> 165 <tr> 166 <td width="100"> </td> 167 <th> 168 <a href="../../../../nw/gfx/res/ResFragmentLight/SetDiffuse.html">SetDiffuse</a> 169 </th> 170 <td>Sets the diffuse color of the light.</td> 171 </tr> 172 <tr> 173 <td width="100"> </td> 174 <th> 175 <a href="../../../../nw/gfx/res/ResFragmentLight/GetDiffuse.html">GetDiffuse</a> 176 </th> 177 <td>Gets the light diffuse color.</td> 178 </tr> 179 <tr> 180 <td width="100"> </td> 181 <th> 182 <a href="../../../../nw/gfx/res/ResFragmentLight/GetSpecular0U32.html">GetSpecular0U32</a> 183 </th> 184 <td>Gets specular 0 of the light in RGBA8 32-bit format.</td> 185 </tr> 186 <tr> 187 <td width="100"> </td> 188 <th> 189 <a href="../../../../nw/gfx/res/ResFragmentLight/SetSpecular0.html">SetSpecular0</a> 190 </th> 191 <td>Sets specular 0 for the light.</td> 192 </tr> 193 <tr> 194 <td width="100"> </td> 195 <th> 196 <a href="../../../../nw/gfx/res/ResFragmentLight/GetSpecular0.html">GetSpecular0</a> 197 </th> 198 <td>Gets specular 0 for the light.</td> 199 </tr> 200 <tr> 201 <td width="100"> </td> 202 <th> 203 <a href="../../../../nw/gfx/res/ResFragmentLight/GetSpecular1U32.html">GetSpecular1U32</a> 204 </th> 205 <td>Gets specular 1 of the light in RGBA8 32-bit format.</td> 206 </tr> 207 <tr> 208 <td width="100"> </td> 209 <th> 210 <a href="../../../../nw/gfx/res/ResFragmentLight/SetSpecular1.html">SetSpecular1</a> 211 </th> 212 <td>Sets specular 1 for the light.</td> 213 </tr> 214 <tr> 215 <td width="100"> </td> 216 <th> 217 <a href="../../../../nw/gfx/res/ResFragmentLight/GetSpecular1.html">GetSpecular1</a> 218 </th> 219 <td>Gets specular 1 for the light.</td> 220 </tr> 221 <tr> 222 <td width="100"> </td> 223 <th> 224 <a href="../../../../nw/gfx/res/ResFragmentLight/SetDirection.html">SetDirection</a> 225 </th> 226 <td>Sets the light direction.</td> 227 </tr> 228 <tr> 229 <td width="100"> </td> 230 <th> 231 <a href="../../../../nw/gfx/res/ResFragmentLight/GetDirection.html">GetDirection</a> 232 </th> 233 <td>Gets the light direction.</td> 234 </tr> 235 <tr> 236 <td width="100"> </td> 237 <th> 238 <a href="../../../../nw/gfx/res/ResFragmentLight/GetDistanceSampler.html">GetDistanceSampler</a> 239 </th> 240 <td>Gets the lookup table for distance attenuation.</td> 241 </tr> 242 <tr> 243 <td width="100"> </td> 244 <th> 245 <a href="../../../../nw/gfx/res/ResFragmentLight/GetAngleSampler.html">GetAngleSampler</a> 246 </th> 247 <td>Gets the lookup table for angular attenuation.</td> 248 </tr> 249 <tr> 250 <td width="100"> </td> 251 <th> 252 <a href="../../../../nw/gfx/res/ResFragmentLight/SetDistanceSampler.html">SetDistanceSampler</a> 253 </th> 254 <td>Sets the lookup table. Resources are not freed because this parameter is set to the table being referenced.</td> 255 </tr> 256 <tr> 257 <td width="100"> </td> 258 <th> 259 <a href="../../../../nw/gfx/res/ResFragmentLight/GetDistanceAttenuationStart.html">GetDistanceAttenuationStart</a> 260 </th> 261 <td>Gets the starting distance for distance attenuation.</td> 262 </tr> 263 <tr> 264 <td width="100"> </td> 265 <th> 266 <a href="../../../../nw/gfx/res/ResFragmentLight/GetDistanceAttenuationEnd.html"><CODE>GetDistanceAttenuationEnd</CODE></a> 267 </th> 268 <td>Gets the ending distance for distance attenuation.</td> 269 </tr> 270 <tr> 271 <td width="100"> </td> 272 <th> 273 <a href="../../../../nw/gfx/res/ResFragmentLight/SetDistanceAttenuationStart.html">SetDistanceAttenuationStart</a> 274 </th> 275 <td>Sets the starting distance for distance attenuation.</td> 276 </tr> 277 <tr> 278 <td width="100"> </td> 279 <th> 280 <a href="../../../../nw/gfx/res/ResFragmentLight/SetDistanceAttenuationEnd.html">SetDistanceAttenuationEnd</a> 281 </th> 282 <td>Sets the ending distance for distance attenuation.</td> 283 </tr> 284 <tr> 285 <td width="100"> </td> 286 <th> 287 <a href="../../../../nw/gfx/res/ResFragmentLight/SetDistanceAttenuation.html"><CODE>SetDistanceAttenuation</CODE></a> 288 </th> 289 <td>Sets the starting and ending parameters for distance attenuation.</td> 290 </tr> 291 <tr> 292 <td width="100"> </td> 293 <th> 294 <a href="../../../../nw/gfx/res/ResFragmentLight/IsDirty.html">IsDirty</a> 295 </th> 296 <td>Gets a flag indicating whether light contents have been updated.</td> 297 </tr> 298 <tr> 299 <td width="100"> </td> 300 <th> 301 <a href="../../../../nw/gfx/res/ResFragmentLight/SetDirty.html">SetDirty</a> 302 </th> 303 <td>Sets a flag indicating whether light contents have been updated.</td> 304 </tr> 305 <tr> 306 <td width="100"> </td> 307 <th> 308 <a href="../../../../nw/gfx/res/ResLight/IsLightEnabled.html">IsLightEnabled</a> 309 </th> 310 <td>Gets the light enable flag.(Derived from <a href="../../../../nw/gfx/res/ResLight/Overview.html"><CODE>ResLight</CODE></a>.)</td> 311 </tr> 312 <tr> 313 <td width="100"> </td> 314 <th> 315 <a href="../../../../nw/gfx/res/ResLight/SetLightEnabled.html">SetLightEnabled</a> 316 </th> 317 <td>Sets the light enable flag.(Derived from <a href="../../../../nw/gfx/res/ResLight/Overview.html"><CODE>ResLight</CODE></a>.)</td> 318 </tr> 319 <tr> 320 <td width="100"> </td> 321 <th> 322 <a href="../../../../nw/gfx/res/ResLight/GetRevision.html"><CODE>GetRevision</CODE></a> 323 </th> 324 <td>Gets the revision.(Derived from <a href="../../../../nw/gfx/res/ResLight/Overview.html"><CODE>ResLight</CODE></a>.)</td> 325 </tr> 326 <tr> 327 <td width="100"> </td> 328 <th> 329 <a href="../../../../nw/gfx/res/ResLight/Setup.html">Setup</a> 330 </th> 331 <td>Sets up a resource.(Derived from <a href="../../../../nw/gfx/res/ResLight/Overview.html"><CODE>ResLight</CODE></a>.)</td> 332 </tr> 333 <tr> 334 <td width="100"> </td> 335 <th> 336 <a href="../../../../nw/gfx/res/ResLight/Cleanup.html"><CODE>Cleanup</CODE></a> 337 </th> 338 <td>Cleans up a resource.(Derived from <a href="../../../../nw/gfx/res/ResLight/Overview.html"><CODE>ResLight</CODE></a>.)</td> 339 </tr> 340 <tr> 341 <td width="100"> </td> 342 <th> 343 <a href="../../../../nw/gfx/res/ResTransformNode/GetTransform.html"><CODE>GetTransform</CODE></a> 344 </th> 345 <td>Gets transform information.(Derived from <a href="../../../../nw/gfx/res/ResTransformNode/Overview.html"><CODE>ResTransformNode</CODE></a>.)</td> 346 </tr> 347 <tr> 348 <td width="100"> </td> 349 <th> 350 <a href="../../../../nw/gfx/res/ResTransformNode/SetTransform.html"><CODE>SetTransform</CODE></a> 351 </th> 352 <td>Sets transform information.(Derived from <a href="../../../../nw/gfx/res/ResTransformNode/Overview.html"><CODE>ResTransformNode</CODE></a>.)</td> 353 </tr> 354 <tr> 355 <td width="100"> </td> 356 <th> 357 <a href="../../../../nw/gfx/res/ResTransformNode/GetWorldMatrix.html">GetWorldMatrix</a> 358 </th> 359 <td>Gets the world matrix.(Derived from <a href="../../../../nw/gfx/res/ResTransformNode/Overview.html"><CODE>ResTransformNode</CODE></a>.)</td> 360 </tr> 361 <tr> 362 <td width="100"> </td> 363 <th> 364 <a href="../../../../nw/gfx/res/ResTransformNode/SetWorldMatrix.html"><CODE>SetWorldMatrix</CODE></a> 365 </th> 366 <td>Sets the world matrix.(Derived from <a href="../../../../nw/gfx/res/ResTransformNode/Overview.html"><CODE>ResTransformNode</CODE></a>.)</td> 367 </tr> 368 <tr> 369 <td width="100"> </td> 370 <th> 371 <a href="../../../../nw/gfx/res/ResSceneNode/NW_RES_FIELD_FLAGS_DECL.html"><CODE>NW_RES_FIELD_FLAGS_DECL</CODE></a> 372 </th> 373 <td> 374 (Derived from <a href="../../../../nw/gfx/res/ResSceneNode/Overview.html"><CODE>ResSceneNode</CODE></a>.)</td> 375 </tr> 376 <tr> 377 <td width="100"> </td> 378 <th> 379 <a href="../../../../nw/gfx/res/ResSceneNode/GetChildren.html">GetChildren</a> 380 </th> 381 <td>Gets the child scene object.(Derived from <a href="../../../../nw/gfx/res/ResSceneNode/Overview.html"><CODE>ResSceneNode</CODE></a>.)</td> 382 </tr> 383 <tr> 384 <td width="100"> </td> 385 <th> 386 <a href="../../../../nw/gfx/res/ResSceneNode/GetAnimGroupsCount.html">GetAnimGroupsCount</a> 387 </th> 388 <td>Gets the number of groups to be animated.(Derived from <a href="../../../../nw/gfx/res/ResSceneNode/Overview.html"><CODE>ResSceneNode</CODE></a>.)</td> 389 </tr> 390 <tr> 391 <td width="100"> </td> 392 <th> 393 <a href="../../../../nw/gfx/res/ResSceneNode/GetAnimGroups.html">GetAnimGroups</a> 394 </th> 395 <td>Gets the number of groups to be animated.(Derived from <a href="../../../../nw/gfx/res/ResSceneNode/Overview.html"><CODE>ResSceneNode</CODE></a>.)</td> 396 </tr> 397 <tr> 398 <td width="100"> </td> 399 <th> 400 <a href="../../../../nw/gfx/res/ResSceneNode/GetAnimGroupsIndex.html">GetAnimGroupsIndex</a> 401 </th> 402 <td>Gets the index number in dictionary data of the group information to be animated.(Derived from <a href="../../../../nw/gfx/res/ResSceneNode/Overview.html"><CODE>ResSceneNode</CODE></a>.)</td> 403 </tr> 404 <tr> 405 <td width="100"> </td> 406 <th> 407 <a href="../../../../nw/gfx/res/ResSceneNode/IsBranchVisible.html"><CODE>IsBranchVisible</CODE></a> 408 </th> 409 <td>Gets a flag indicating whether to display node branches.(Derived from <a href="../../../../nw/gfx/res/ResSceneNode/Overview.html"><CODE>ResSceneNode</CODE></a>.)</td> 410 </tr> 411 <tr> 412 <td width="100"> </td> 413 <th> 414 <a href="../../../../nw/gfx/res/ResSceneNode/SetBranchVisible.html"><CODE>SetBranchVisible</CODE></a> 415 </th> 416 <td>Sets a flag indicating whether to display node branches.(Derived from <a href="../../../../nw/gfx/res/ResSceneNode/Overview.html"><CODE>ResSceneNode</CODE></a>.)</td> 417 </tr> 418 <tr> 419 <td width="100"> </td> 420 <th> 421 <a href="../../../../nw/gfx/res/ResSceneObject/GetHeader.html"><CODE>GetHeader</CODE></a> 422 </th> 423 <td>Gets the header information.(Derived from <a href="../../../../nw/gfx/res/ResSceneObject/Overview.html"><CODE>ResSceneObject</CODE></a>.)</td> 424 </tr> 425 <tr> 426 <td width="100"> </td> 427 <th> 428 <a href="../../../../nw/gfx/res/ResSceneObject/SetHeader.html">SetHeader</a> 429 </th> 430 <td>Sets the header information.(Derived from <a href="../../../../nw/gfx/res/ResSceneObject/Overview.html"><CODE>ResSceneObject</CODE></a>.)</td> 431 </tr> 432 <tr> 433 <td width="100"> </td> 434 <th> 435 <a href="../../../../nw/gfx/res/ResSceneObject/GetName.html"><CODE>GetName</CODE></a> 436 </th> 437 <td>Gets the name of the resource.(Derived from <a href="../../../../nw/gfx/res/ResSceneObject/Overview.html"><CODE>ResSceneObject</CODE></a>.)</td> 438 </tr> 439 <tr> 440 <td width="100"> </td> 441 <th> 442 <a href="../../../../nw/gfx/res/ResSceneObject/GetUserDataCount.html">GetUserDataCount</a> 443 </th> 444 <td>Gets the number of instances of user data.(Derived from <a href="../../../../nw/gfx/res/ResSceneObject/Overview.html"><CODE>ResSceneObject</CODE></a>.)</td> 445 </tr> 446 <tr> 447 <td width="100"> </td> 448 <th> 449 <a href="../../../../nw/gfx/res/ResSceneObject/GetUserData.html">GetUserData</a> 450 </th> 451 <td>Gets user data.(Derived from <a href="../../../../nw/gfx/res/ResSceneObject/Overview.html"><CODE>ResSceneObject</CODE></a>.)</td> 452 </tr> 453 <tr> 454 <td width="100"> </td> 455 <th> 456 <a href="../../../../nw/gfx/res/ResSceneObject/GetUserDataIndex.html">GetUserDataIndex</a> 457 </th> 458 <td>Gets the index number of user data in the dictionary.(Derived from <a href="../../../../nw/gfx/res/ResSceneObject/Overview.html"><CODE>ResSceneObject</CODE></a>.)</td> 459 </tr> 460 <tr> 461 <td width="100"> </td> 462 <th> 463 <a href="../../../../nw/gfx/res/ResSceneObject/GetTypeInfo.html"><CODE>GetTypeInfo</CODE></a> 464 </th> 465 <td>Gets instance type information.(Derived from <a href="../../../../nw/gfx/res/ResSceneObject/Overview.html"><CODE>ResSceneObject</CODE></a>.)</td> 466 </tr> 467 <tr> 468 <td width="100"> </td> 469 <th> 470 <a href="../../../../nw/ut/ResCommonBase/IsValid.html"><CODE>IsValid</CODE></a> 471 </th> 472 <td>Determines whether a pointer to a resource is <CODE>null</CODE>.(Derived from <CODE><a href="../../../../nw/ut/ResCommonBase/Overview.html">ResCommonBase</a></CODE>.)</td> 473 </tr> 474 <tr> 475 <td width="100"> 476 <span class="static_style" title="static">S</span> </td> 477 <th> 478 <a href="../../../../nw/gfx/res/ResFragmentLight/GetClassName.html">GetClassName</a> 479 </th> 480 <td> 481 </td> 482 </tr> </table> 483 </div> 484 </a> 485 <h2>Class Hierarchy</h2> 486 <div class="section"> 487 <p class="hierarchy"><a href="../../../../nw/ut/ResCommonBase/Overview.html">nw::ut::ResCommonBase</a><br /> <a href="../../../../nw/ut/ResCommon/Overview.html">nw::ut::ResCommon</a><br /> <a href="../../../../nw/gfx/res/ResSceneObject/Overview.html">nw::gfx::res::ResSceneObject</a><br /> <a href="../../../../nw/gfx/res/ResSceneNode/Overview.html">nw::gfx::res::ResSceneNode</a><br /> <a href="../../../../nw/gfx/res/ResTransformNode/Overview.html">nw::gfx::res::ResTransformNode</a><br /> <a href="../../../../nw/gfx/res/ResLight/Overview.html">nw::gfx::res::ResLight</a><br /> <b>nw::gfx::res::ResFragmentLight</b> 488 </p> 489 </div> 490 <hr><p>CONFIDENTIAL</p></body> 491</html>