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::gfx::Material</title> 49 </head> 50 <body> 51 <h1><CODE><a href="../../../nw/Overview.html">nw</a>::<a href="../../../nw/gfx/Overview.html">gfx</a>::Material</CODE> Class</h1> 52 <h2>Syntax</h2> 53 <div class="section"> 54 <pre class="definition">class Material : public <a href="../../../nw/gfx/SceneObject/Overview.html">nw::gfx::SceneObject</a></pre> 55 </div> 56 <h2>Description</h2> 57 <div class="section"> 58 <p>Class that represents materials.</p><p>You need to use a buffer if you want to restore the state of a material to when it was created after animation.</p></div> 59 <a name="constant" id="constant"> 60 <h2>Member Constants</h2> 61 <div class="section"> 62 <table class="members"> 63 <tr> 64 <td width="100"> 65 <span class="static_style" title="static">S</span> 66 </td> 67 <th> 68 <span class="argument"><a href="../../../nw/gfx/SceneObject/DEFAULT_MAX_CHILDREN.html"><CODE>DEFAULT_MAX_CHILDREN</CODE></a></span> 69 </th> 70 <td width="100"><CODE>const int</CODE></td> 71 <td>Maximum number of children when a fixed amount of memory is used.(Derived from <a href="../../../nw/gfx/SceneObject/Overview.html"><CODE>SceneObject</CODE></a>.)</td> 72 </tr> 73 <tr> 74 <td width="100"> 75 <span class="static_style" title="static">S</span> 76 </td> 77 <th> 78 <span class="argument"><a href="../../../nw/gfx/SceneObject/DEFAULT_MAX_CALLBACKS.html"><CODE>DEFAULT_MAX_CALLBACKS</CODE></a></span> 79 </th> 80 <td width="100"><CODE>const int</CODE></td> 81 <td>Maximum number of callbacks when a fixed amount of memory is used.(Derived from <a href="../../../nw/gfx/SceneObject/Overview.html"><CODE>SceneObject</CODE></a>.)</td> 82 </tr> 83 <tr> 84 <td width="100"> 85 <span class="static_style" title="static">S</span> 86 </td> 87 <th> 88 <span class="argument"><a href="../../../nw/gfx/SceneObject/MAX_NAME_LENGTH.html"><CODE>MAX_NAME_LENGTH</CODE></a></span> 89 </th> 90 <td width="100"><CODE>const int</CODE></td> 91 <td>Limit on names of scene objects.(Derived from <a href="../../../nw/gfx/SceneObject/Overview.html"><CODE>SceneObject</CODE></a>.)</td> 92 </tr> </table> 93 </div> 94 </a> <a name="variable" id="variable"> 95 <h2>Member Variables</h2> 96 <div class="section"> 97 <table class="members"> 98 <tr> 99 <td width="100"> </td> 100 <th> 101 <span class="argument"><CODE>NW_UT_RUNTIME_TYPEINFO</CODE></span> 102 </th> 103 <td width="100" /> 104 <td> 105 </td> 106 </tr> </table> 107 </div> 108 </a> <a name="function" id="function"> 109 <h2>Member Functions</h2> 110 <div class="section"> 111 <table class="members"> 112 <tr> 113 <th class="category" colspan="3">Creation</th> 114 </tr> 115 <tr> 116 <td width="100"> 117 <span class="static_style" title="static">S</span> </td> 118 <th> 119 <a href="../../../nw/gfx/Material/Create.html"><CODE>Create</CODE></a> 120 </th> 121 <td>Creates a material from a resource.</td> 122 </tr> 123 <tr> 124 <td width="100"> 125 <span class="static_style" title="static">S</span> </td> 126 <th> 127 <a href="../../../nw/gfx/Material/GetMemorySize.html"><CODE>GetMemorySize</CODE></a> 128 </th> 129 <td>Gets the memory size required at time of creation.</td> 130 </tr> 131 <tr> 132 <th class="category" colspan="3">Set/Get</th> 133 </tr> 134 <tr> 135 <td width="100"> </td> 136 <th> 137 <a href="../../../nw/gfx/Material/GetOriginal.html"><CODE>GetOriginal</CODE></a> 138 </th> 139 <td>Gets the original resource.</td> 140 </tr> 141 <tr> 142 <td width="100"> </td> 143 <th> 144 <a href="../../../nw/gfx/Material/GetOwnerModel.html"><CODE>GetOwnerModel</CODE></a> 145 </th> 146 <td>Gets an owner model.</td> 147 </tr> 148 <tr> 149 <td width="100"> </td> 150 <th> 151 <a href="../../../nw/gfx/Material/SetDescription.html"><CODE>SetDescription</CODE></a> 152 </th> 153 <td>Sets the resource.</td> 154 </tr> 155 <tr> 156 <td width="100"> </td> 157 <th> 158 <a href="../../../nw/gfx/Material/GetDescription.html"><CODE>GetDescription</CODE></a> 159 </th> 160 <td>Gets the resource.</td> 161 </tr> 162 <tr> 163 <th class="category" colspan="3">Buffer option-related</th> 164 </tr> 165 <tr> 166 <td width="100"> </td> 167 <th> 168 <a href="../../../nw/gfx/Material/GetBufferCount.html"><CODE>GetBufferCount</CODE></a> 169 </th> 170 <td>Gets the number of buffers.</td> 171 </tr> 172 <tr> 173 <td width="100"> </td> 174 <th> 175 <a href="../../../nw/gfx/Material/GetBuffer.html"><CODE>GetBuffer</CODE></a> 176 </th> 177 <td>Gets a buffer.</td> 178 </tr> 179 <tr> 180 <td width="100"> </td> 181 <th> 182 <a href="../../../nw/gfx/Material/GetShaderParameterResMaterial.html">GetShaderParameterResMaterial</a> 183 </th> 184 <td>Gets a material for which shader parameters are enabled.</td> 185 </tr> 186 <tr> 187 <td width="100"> </td> 188 <th> 189 <a href="../../../nw/gfx/Material/GetShadingParameterResMaterial.html">GetShadingParameterResMaterial</a> 190 </th> 191 <td>Gets a material for which shading parameters are enabled.</td> 192 </tr> 193 <tr> 194 <td width="100"> </td> 195 <th> 196 <a href="../../../nw/gfx/Material/GetMaterialColorResMaterial.html">GetMaterialColorResMaterial</a> 197 </th> 198 <td>Gets a material for which material color is enabled.</td> 199 </tr> 200 <tr> 201 <td width="100"> </td> 202 <th> 203 <a href="../../../nw/gfx/Material/GetRasterizationResMaterial.html">GetRasterizationResMaterial</a> 204 </th> 205 <td>Gets a material for which rasterization is enabled.</td> 206 </tr> 207 <tr> 208 <td width="100"> </td> 209 <th> 210 <a href="../../../nw/gfx/Material/GetTextureCoordinatorResMaterial.html">GetTextureCoordinatorResMaterial</a> 211 </th> 212 <td>Gets a material for which a texture coordinator is enabled.</td> 213 </tr> 214 <tr> 215 <td width="100"> </td> 216 <th> 217 <a href="../../../nw/gfx/Material/GetTextureMapperResMaterial.html">GetTextureMapperResMaterial</a> 218 </th> 219 <td>Gets a material for which a texture mapper is enabled.</td> 220 </tr> 221 <tr> 222 <td width="100"> </td> 223 <th> 224 <a href="../../../nw/gfx/Material/GetFragmentLightingResMaterial.html">GetFragmentLightingResMaterial</a> 225 </th> 226 <td>Gets a material for which fragment lighting is enabled.</td> 227 </tr> 228 <tr> 229 <td width="100"> </td> 230 <th> 231 <a href="../../../nw/gfx/Material/GetFragmentLightingTableResMaterial.html">GetFragmentLightingTableResMaterial</a> 232 </th> 233 <td>Gets a material for which a fragment lighting table is enabled.</td> 234 </tr> 235 <tr> 236 <td width="100"> </td> 237 <th> 238 <a href="../../../nw/gfx/Material/GetTextureCombinerResMaterial.html">GetTextureCombinerResMaterial</a> 239 </th> 240 <td>Gets a material for which a texture combiner is enabled.</td> 241 </tr> 242 <tr> 243 <td width="100"> </td> 244 <th> 245 <a href="../../../nw/gfx/Material/GetAlphaTestResMaterial.html">GetAlphaTestResMaterial</a> 246 </th> 247 <td>Gets a material for which alpha test is enabled.</td> 248 </tr> 249 <tr> 250 <td width="100"> </td> 251 <th> 252 <a href="../../../nw/gfx/Material/GetFragmentOperationResMaterial.html">GetFragmentOperationResMaterial</a> 253 </th> 254 <td>Gets a material for which fragment operations are enabled.</td> 255 </tr> 256 <tr> 257 <td width="100"> </td> 258 <th> 259 <a href="../../../nw/gfx/Material/GetSceneEnvironmentResMaterial.html">GetSceneEnvironmentResMaterial</a> 260 </th> 261 <td>Gets a material for which shading parameters are enabled.</td> 262 </tr> 263 <tr> 264 <th class="category" colspan="3">Resources</th> 265 </tr> 266 <tr> 267 <td width="100"> </td> 268 <th> 269 <a href="../../../nw/gfx/SceneObject/GetResSceneObject.html"><CODE>GetResSceneObject</CODE></a> 270 </th> 271 <td>Gets the scene object resource.(Derived from <a href="../../../nw/gfx/SceneObject/Overview.html"><CODE>SceneObject</CODE></a>.)</td> 272 </tr> 273 <tr> 274 <td width="100"> </td> 275 <th> 276 <a href="../../../nw/gfx/SceneObject/GetName.html"><CODE>GetName</CODE></a> 277 </th> 278 <td>Gets the name from the resource.(Derived from <a href="../../../nw/gfx/SceneObject/Overview.html"><CODE>SceneObject</CODE></a>.)</td> 279 </tr> 280 <tr> 281 <th class="category" colspan="3">Create/Destroy</th> 282 </tr> 283 <tr> 284 <td width="100"> </td> 285 <th> 286 <a href="../../../nw/gfx/GfxObject/Destroy.html"><CODE>Destroy</CODE></a> 287 </th> 288 <td>Destroys an object.(Derived from <a href="../../../nw/gfx/GfxObject/Overview.html"><CODE>GfxObject</CODE></a>.)</td> 289 </tr> 290 <tr> 291 <th class="category" colspan="3">Constructors and Destructors</th> 292 </tr> 293 <tr> 294 <td width="100"> 295 <span class="protected_style" title="protected">protected</span> </td> 296 <th> 297 <a href="../../../nw/gfx/Material/Material.html">Material</a> 298 </th> 299 <td>Constructor.</td> 300 </tr> 301 <tr> 302 <td width="100"> 303 <span class="protected_style" title="protected">protected</span> <span class="virtual_style" title="virtual">V</span> 304 </td> 305 <th> 306 <a href="../../../nw/gfx/Material/~Material.html"><CODE>~Material</CODE></a> 307 </th> 308 <td>Destructor.</td> 309 </tr> </table> 310 </div> 311 </a> 312 <h2>Class Hierarchy</h2> 313 <div class="section"> 314 <p class="hierarchy"><a href="../../../nw/gfx/GfxObject/Overview.html">nw::gfx::GfxObject</a><br /> <a href="../../../nw/gfx/SceneObject/Overview.html">nw::gfx::SceneObject</a><br /> <b>nw::gfx::Material</b> 315 </p> 316 </div> 317 <hr><p>CONFIDENTIAL</p></body> 318</html> 319