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>BindAnimation</title>
8  </head>
9  <body>
10    <h1><CODE>nw::demo::Utility::BindAnimation</CODE> Member Function</h1>
11    <h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14static <a href="../../../nw/gfx/BaseAnimEvaluator/Overview.html">nw::gfx::BaseAnimEvaluator</a> * BindAnimation(
15     <a href="../../../nw/os/IAllocator/Overview.html">os::IAllocator</a> * allocator,
16     <a href="../../../nw/gfx/SceneObject/Overview.html">nw::gfx::SceneObject</a> * object,
17     nw::anim::ResAnim resAnim,
18     <a href="../../../nw/demo/Utility/AnimationType.html">AnimationType</a> animationType,
19     bool allocCache
20);
21</pre>
22    </div>
23    <h2>Arguments</h2>
24    <div class="section">
25      <table class="arguments">
26        <thead>
27          <tr>
28            <td width="15" />
29            <th>Name</th>
30            <td>Description</td>
31          </tr>
32        </thead>
33        <tr>
34          <td>in</td>
35          <th>allocator</th>
36          <td>Allocator to use for generation of animation objects.</td>
37        </tr>
38        <tr>
39          <td>in</td>
40          <th>object</th>
41          <td>Scene object.</td>
42        </tr>
43        <tr>
44          <td>in</td>
45          <th><STRONG>resAnm</STRONG></th>
46          <td>Animation resource with the animation data.</td>
47        </tr>
48        <tr>
49          <td>in</td>
50          <th>animationType</th>
51          <td>The animation type.</td>
52        </tr>
53        <tr>
54          <td>in</td>
55          <th><CODE>allocCache</CODE></th>
56          <td>Sets whether to allocate a cache buffer and enable the cache.</td>
57        </tr> </table>
58    </div>
59    <h2>Return Values</h2>
60    <div class="section">Returns the animation object that was created. </div>
61    <h2>Description</h2>
62    <div class="section">
63      <p>Binds an animation.</p><p>Creates an animation blender and binds it to the specified scene object.</p><p>The function fails and returns <CODE>NULL</CODE> if the specified type of animation group does not exist in the scene object, or if binding has failed.</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>
64    <h2>See Also</h2>
65    <div class="section">
66      <p class="reference"><a href="../../../nw/demo/Utility/BindAnimationByName.html">BindAnimationByName</a><br /><a href="../../../nw/gfx/AnimObject/Bind.html">nw::gfx::AnimObject::Bind</a><br /><a href="../../../nw/gfx/SkeletalModel/SetSkeletalAnimObject.html">nw::gfx::SkeletalModel::SetSkeletalAnimObject</a><br /><a href="../../../nw/gfx/Model/SetMaterialAnimObject.html">nw::gfx::Model::SetMaterialAnimObject</a><br /><a href="../../../nw/gfx/Model/SetVisibilityAnimObject.html">nw::gfx::Model::SetVisibilityAnimObject</a><br /><a href="../../../nw/gfx/Camera/SetAnimObject.html">nw::gfx::Camera::SetAnimObject</a><br /><a href="../../../nw/gfx/Light/SetAnimObject.html">nw::gfx::Light::SetAnimObject</a><br /> </p>
67    </div>
68  <hr><p>CONFIDENTIAL</p></body>
69</html>