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::ResMaterialColor</title> 51 </head> 52 <body> 53 <h1>nw::gfx::res::ResMaterialColor Class</h1> 54 <h2>Syntax</h2> 55 <div class="section"> 56 <pre class="definition">class ResMaterialColor : public <a href="../../../../nw/ut/ResCommon/Overview.html">nw::ut::ResCommon< ResMaterialColorData ></a></pre> 57 </div> 58 <h2>Description</h2> 59 <div class="section"> 60 <p>Binary resource class that represents materials.</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">Set/Get</th> 68 </tr> 69 <tr> 70 <td width="100"> </td> 71 <th> 72 <a href="../../../../nw/gfx/res/ResMaterialColor/GetAmbient.html">GetAmbient</a> 73 </th> 74 <td>Gets the ambient color.</td> 75 </tr> 76 <tr> 77 <td width="100"> </td> 78 <th> 79 <a href="../../../../nw/gfx/res/ResMaterialColor/GetVertexColorScale.html"><CODE>GetVertexColorScale</CODE></a> 80 </th> 81 <td>Gets the scale value for vertex colors.</td> 82 </tr> 83 <tr> 84 <td width="100"> </td> 85 <th> 86 <a href="../../../../nw/gfx/res/ResMaterialColor/SetVertexColorScale.html"><CODE>SetVertexColorScale</CODE></a> 87 </th> 88 <td>Sets the scale value for vertex colors.</td> 89 </tr> 90 <tr> 91 <td width="100"> </td> 92 <th> 93 <a href="../../../../nw/gfx/res/ResMaterialColor/GetAmbientU32.html"><CODE>GetAmbientU32</CODE></a> 94 </th> 95 <td>Gets the ambient color in RGBA8 format.</td> 96 </tr> 97 <tr> 98 <td width="100"> </td> 99 <th> 100 <a href="../../../../nw/gfx/res/ResMaterialColor/SetAmbient.html"><CODE>SetAmbient</CODE></a> 101 </th> 102 <td>Sets the ambient color.</td> 103 </tr> 104 <tr> 105 <td width="100"> </td> 106 <th> 107 <a href="../../../../nw/gfx/res/ResMaterialColor/GetEmissionU32.html">GetEmissionU32</a> 108 </th> 109 <td>Gets the emission color in RGBA8 32-bit format.</td> 110 </tr> 111 <tr> 112 <td width="100"> </td> 113 <th> 114 <a href="../../../../nw/gfx/res/ResMaterialColor/SetEmission.html">SetEmission</a> 115 </th> 116 <td>Sets the emission color.</td> 117 </tr> 118 <tr> 119 <td width="100"> </td> 120 <th> 121 <a href="../../../../nw/gfx/res/ResMaterialColor/GetEmission.html">GetEmission</a> 122 </th> 123 <td>Gets the emission color.</td> 124 </tr> 125 <tr> 126 <td width="100"> </td> 127 <th> 128 <a href="../../../../nw/gfx/res/ResMaterialColor/GetDiffuseU32.html">GetDiffuseU32</a> 129 </th> 130 <td>Gets the diffuse color in RGBA8 32-bit format.</td> 131 </tr> 132 <tr> 133 <td width="100"> </td> 134 <th> 135 <a href="../../../../nw/gfx/res/ResMaterialColor/SetDiffuse.html">SetDiffuse</a> 136 </th> 137 <td>Sets the diffuse color.</td> 138 </tr> 139 <tr> 140 <td width="100"> </td> 141 <th> 142 <a href="../../../../nw/gfx/res/ResMaterialColor/GetDiffuse.html">GetDiffuse</a> 143 </th> 144 <td>Gets the diffuse color.</td> 145 </tr> 146 <tr> 147 <td width="100"> </td> 148 <th> 149 <a href="../../../../nw/gfx/res/ResMaterialColor/GetSpecular0U32.html">GetSpecular0U32</a> 150 </th> 151 <td>Gets specular color 0 in RGBA8 32-bit format.</td> 152 </tr> 153 <tr> 154 <td width="100"> </td> 155 <th> 156 <a href="../../../../nw/gfx/res/ResMaterialColor/SetSpecular0.html">SetSpecular0</a> 157 </th> 158 <td>Sets specular color 0.</td> 159 </tr> 160 <tr> 161 <td width="100"> </td> 162 <th> 163 <a href="../../../../nw/gfx/res/ResMaterialColor/GetSpecular0.html">GetSpecular0</a> 164 </th> 165 <td>Gets specular color 0.</td> 166 </tr> 167 <tr> 168 <td width="100"> </td> 169 <th> 170 <a href="../../../../nw/gfx/res/ResMaterialColor/GetSpecular1U32.html">GetSpecular1U32</a> 171 </th> 172 <td>Gets specular color 1 in RGBA8 32-bit format.</td> 173 </tr> 174 <tr> 175 <td width="100"> </td> 176 <th> 177 <a href="../../../../nw/gfx/res/ResMaterialColor/SetSpecular1.html">SetSpecular1</a> 178 </th> 179 <td>Sets specular color 1.</td> 180 </tr> 181 <tr> 182 <td width="100"> </td> 183 <th> 184 <a href="../../../../nw/gfx/res/ResMaterialColor/GetSpecular1.html">GetSpecular1</a> 185 </th> 186 <td>Gets specular color 1.</td> 187 </tr> 188 <tr> 189 <td width="100"> </td> 190 <th> 191 <a href="../../../../nw/gfx/res/ResMaterialColor/GetConstant0U32.html">GetConstant0U32</a> 192 </th> 193 <td>Gets constant color 0 in RGBA8 32-bit format.</td> 194 </tr> 195 <tr> 196 <td width="100"> </td> 197 <th> 198 <a href="../../../../nw/gfx/res/ResMaterialColor/SetConstant0.html">SetConstant0</a> 199 </th> 200 <td>Sets constant color 0.</td> 201 </tr> 202 <tr> 203 <td width="100"> </td> 204 <th> 205 <a href="../../../../nw/gfx/res/ResMaterialColor/GetConstant0.html">GetConstant0</a> 206 </th> 207 <td>Gets constant color 0.</td> 208 </tr> 209 <tr> 210 <td width="100"> </td> 211 <th> 212 <a href="../../../../nw/gfx/res/ResMaterialColor/GetConstant1U32.html">GetConstant1U32</a> 213 </th> 214 <td>Gets constant color 1 in RGBA8 32-bit format.</td> 215 </tr> 216 <tr> 217 <td width="100"> </td> 218 <th> 219 <a href="../../../../nw/gfx/res/ResMaterialColor/SetConstant1.html">SetConstant1</a> 220 </th> 221 <td>Sets constant color 1.</td> 222 </tr> 223 <tr> 224 <td width="100"> </td> 225 <th> 226 <a href="../../../../nw/gfx/res/ResMaterialColor/GetConstant1.html">GetConstant1</a> 227 </th> 228 <td>Gets constant color 1.</td> 229 </tr> 230 <tr> 231 <td width="100"> </td> 232 <th> 233 <a href="../../../../nw/gfx/res/ResMaterialColor/GetConstant2U32.html">GetConstant2U32</a> 234 </th> 235 <td>Gets constant color 2 in RGBA8 32-bit format.</td> 236 </tr> 237 <tr> 238 <td width="100"> </td> 239 <th> 240 <a href="../../../../nw/gfx/res/ResMaterialColor/SetConstant2.html">SetConstant2</a> 241 </th> 242 <td>Sets constant color 2.</td> 243 </tr> 244 <tr> 245 <td width="100"> </td> 246 <th> 247 <a href="../../../../nw/gfx/res/ResMaterialColor/GetConstant2.html">GetConstant2</a> 248 </th> 249 <td>Gets constant color 2.</td> 250 </tr> 251 <tr> 252 <td width="100"> </td> 253 <th> 254 <a href="../../../../nw/gfx/res/ResMaterialColor/GetConstant3U32.html">GetConstant3U32</a> 255 </th> 256 <td>Gets constant color 3 in RGBA8 32-bit format.</td> 257 </tr> 258 <tr> 259 <td width="100"> </td> 260 <th> 261 <a href="../../../../nw/gfx/res/ResMaterialColor/SetConstant3.html">SetConstant3</a> 262 </th> 263 <td>Sets constant color 3.</td> 264 </tr> 265 <tr> 266 <td width="100"> </td> 267 <th> 268 <a href="../../../../nw/gfx/res/ResMaterialColor/GetConstant3.html">GetConstant3</a> 269 </th> 270 <td>Gets constant color 3.</td> 271 </tr> 272 <tr> 273 <td width="100"> </td> 274 <th> 275 <a href="../../../../nw/gfx/res/ResMaterialColor/GetConstant4U32.html">GetConstant4U32</a> 276 </th> 277 <td>Gets constant color 4 in RGBA8 32-bit format.</td> 278 </tr> 279 <tr> 280 <td width="100"> </td> 281 <th> 282 <a href="../../../../nw/gfx/res/ResMaterialColor/SetConstant4.html">SetConstant4</a> 283 </th> 284 <td>Sets constant color 4.</td> 285 </tr> 286 <tr> 287 <td width="100"> </td> 288 <th> 289 <a href="../../../../nw/gfx/res/ResMaterialColor/GetConstant4.html">GetConstant4</a> 290 </th> 291 <td>Gets constant color 4.</td> 292 </tr> 293 <tr> 294 <td width="100"> </td> 295 <th> 296 <a href="../../../../nw/gfx/res/ResMaterialColor/GetConstant5U32.html">GetConstant5U32</a> 297 </th> 298 <td>Gets constant color 5 in RGBA8 32-bit format.</td> 299 </tr> 300 <tr> 301 <td width="100"> </td> 302 <th> 303 <a href="../../../../nw/gfx/res/ResMaterialColor/SetConstant5.html">SetConstant5</a> 304 </th> 305 <td>Sets constant color 5.</td> 306 </tr> 307 <tr> 308 <td width="100"> </td> 309 <th> 310 <a href="../../../../nw/gfx/res/ResMaterialColor/GetConstant5.html">GetConstant5</a> 311 </th> 312 <td>Gets constant color 5.</td> 313 </tr> 314 <tr> 315 <th class="category" colspan="3">Other</th> 316 </tr> 317 <tr> 318 <td width="100"> </td> 319 <th> 320 <a href="../../../../nw/gfx/res/ResMaterialColor/ResMaterialColor.html">ResMaterialColor</a> 321 </th> 322 <td>Constructor.</td> 323 </tr> 324 <tr> 325 <td width="100"> </td> 326 <th> 327 <a href="../../../../nw/gfx/res/ResMaterialColor/ref.html">ref</a> 328 </th> 329 <td> 330 </td> 331 </tr> 332 <tr> 333 <td width="100"> </td> 334 <th> 335 <a href="../../../../nw/gfx/res/ResMaterialColor/operator==.html"><CODE>operator ==</CODE></a> 336 </th> 337 <td> 338 </td> 339 </tr> 340 <tr> 341 <td width="100"> </td> 342 <th> 343 <a href="../../../../nw/gfx/res/ResMaterialColor/operator!=.html"><CODE>operator !=</CODE></a> 344 </th> 345 <td> 346 </td> 347 </tr> 348 <tr> 349 <td width="100"> </td> 350 <th> 351 <a href="../../../../nw/ut/ResCommon/ptr.html">ptr</a> 352 </th> 353 <td>Returns a pointer to a binary resource structure. (Inherited from <CODE><a href="../../../../nw/ut/ResCommon/Overview.html">ResCommon</a></CODE>)</td> 354 </tr> 355 <tr> 356 <td width="100"> </td> 357 <th> 358 <a href="../../../../nw/ut/ResCommonBase/IsValid.html"><CODE>IsValid</CODE></a> 359 </th> 360 <td>Determines whether a pointer to a resource is <CODE>null</CODE>.(Inherited from <CODE><a href="../../../../nw/ut/ResCommonBase/Overview.html">ResCommonBase</a></CODE>.</td> 361 </tr> 362 <tr> 363 <td width="100"> 364 <span class="static_style" title="static">S</span> </td> 365 <th> 366 <a href="../../../../nw/gfx/res/ResMaterialColor/GetClassName.html">GetClassName</a> 367 </th> 368 <td> 369 </td> 370 </tr> </table> 371 </div> 372 </a> 373 <h2>Class Hierarchy</h2> 374 <div class="section"> 375 <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 /> <b>nw::gfx::res::ResMaterialColor</b> 376 </p> 377 </div> 378 <hr><p>CONFIDENTIAL</p></body> 379</html>