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