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 <title>BindAnimationByName</title> 8 </head> 9 <body> 10 <h1><CODE><a href="../../../nw/Overview.html">nw</a>::<a href="../../../nw/demo/Overview.html">demo</a>::<a href="../../../nw/demo/Utility/Overview.html">Utility</a>::BindAnimationByName</CODE> Member Function</h1> 11 <h2>Syntax</h2> 12 <div class="section"> 13 <pre class="definition"> 14template <class TObjectArray, class TResArray> 15static <a href="../../../nw/gfx/BaseAnimEvaluator/Overview.html">nw::gfx::BaseAnimEvaluator</a> * BindAnimationByName( 16 <a href="../../../nw/os/IAllocator/Overview.html">os::IAllocator</a> * allocator, 17 TObjectArray & objects, 18 TResArray & resources, 19 const char * objectName, 20 const char * animationName, 21 <a href="../../../nw/demo/Utility/AnimationType.html">AnimationType</a> animationType, 22 bool allocCache 23); 24</pre> 25 </div> 26 <h2>Template Arguments</h2> 27 <div class="section"> 28 <table class="arguments"> 29 <thead> 30 <tr> 31 <th>Name</th> 32 <td>Description</td> 33 </tr> 34 </thead> 35 <tr> 36 <th>TObjectArray</th> 37 <td>Scene object collection type.</td> 38 </tr> 39 <tr> 40 <th>TResArray</th> 41 <td>Resource object collection type.</td> 42 </tr> </table> 43 </div> 44 <h2>Arguments</h2> 45 <div class="section"> 46 <table class="arguments"> 47 <thead> 48 <tr> 49 <td width="15" /> 50 <th>Name</th> 51 <td>Description</td> 52 </tr> 53 </thead> 54 <tr> 55 <td>in</td> 56 <th>allocator</th> 57 <td>Allocator to use for generation of animation objects.</td> 58 </tr> 59 <tr> 60 <td>in</td> 61 <th>objects</th> 62 <td>Collection of scene objects.</td> 63 </tr> 64 <tr> 65 <td>in</td> 66 <th>resources</th> 67 <td>Collection of resources.</td> 68 </tr> 69 <tr> 70 <td>in</td> 71 <th>objectName</th> 72 <td>Object name.</td> 73 </tr> 74 <tr> 75 <td>in</td> 76 <th>animationName</th> 77 <td>Name of animation data.</td> 78 </tr> 79 <tr> 80 <td>in</td> 81 <th>animationType</th> 82 <td>The animation type.</td> 83 </tr> 84 <tr> 85 <td>in</td> 86 <th><CODE>allocCache</CODE></th> 87 <td>Sets whether to allocate a cache buffer and enable the cache.</td> 88 </tr> </table> 89 </div> 90 <h2>Return Values</h2> 91 <div class="section">Returns the animation object that was created. </div> 92 <h2>Description</h2> 93 <div class="section"> 94 <p>Binds the animation with the specified name.</p><p>Searches for objects and animation data of specified names and binds them. The function fails and returns <CODE>NULL</CODE>if objects and animation data of specified names cannot be found, or if the animation group of the specified type does not exist in the object, or if binding has failed. </p><p>If objects and animation data with the same name exist, the first found are used.</p><p><CODE><a href="../../../nw/gfx/TransformAnimEvaluator/Overview.html">nw::gfx::TransformAnimEvaluator</a></CODE> if the animation object that is to be created is a skeletal animation. Otherwise, <CODE><a href="../../../nw/gfx/TransformAnimEvaluator/Overview.html">nw::gfx::TransformAnimEvaluator</a></CODE>.</p></div> 95 <h2>See Also</h2> 96 <div class="section"> 97 <p class="reference"><a href="../../../nw/demo/Utility/BindAnimation.html">BindAnimation</a><br /><a href="../../../nw/demo/Utility/FindObjectByName.html">FindObjectByName</a><br /><a href="../../../nw/demo/Utility/FindResAnimByName.html">FindResAnimByName</a><br /> </p> 98 </div> 99 <hr><p>CONFIDENTIAL</p></body> 100</html> 101