nw::demo::Utility::BindAnimation Member Functionstatic nw::gfx::BaseAnimEvaluator * BindAnimation( os::IAllocator * allocator, nw::gfx::SceneObject * object, nw::anim::ResAnim resAnim, AnimationType animationType, bool allocCache );
| Name | Description | |
|---|---|---|
| in | allocator | Allocator to use for generation of animation objects. |
| in | object | Scene object. |
| in | resAnm | Animation resource with the animation data. |
| in | animationType | The animation type. |
| in | allocCache |
Sets whether to allocate a cache buffer and enable the cache. |
Binds an animation.
Creates an animation blender and binds it to the specified scene object.
The function fails and returns NULL if the specified type of animation group does not exist in the scene object, or if binding has failed.
nw::gfx::TransformAnimEvaluator if the animation object that is to be created is a skeletal animation. Otherwise, nw::gfx::TransformAnimEvaluator.
BindAnimationByName
nw::gfx::AnimObject::Bind
nw::gfx::SkeletalModel::SetSkeletalAnimObject
nw::gfx::Model::SetMaterialAnimObject
nw::gfx::Model::SetVisibilityAnimObject
nw::gfx::Camera::SetAnimObject
nw::gfx::Light::SetAnimObject
CONFIDENTIAL