nw::demo::Utility::BindAnimation Member Function

Syntax

static nw::gfx::BaseAnimEvaluator * BindAnimation(
     os::IAllocator * allocator,
     nw::gfx::SceneObject * object,
     nw::anim::ResAnim resAnim,
     AnimationType animationType,
     bool allocCache
);

Arguments

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.

Return Values

Returns the animation object that was created.

Description

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.

See Also

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