nw::lyt::AnimTransform::SetResource Member Function

Syntax

virtual void SetResource(
     const res::AnimationBlock * pRes,
     ResourceAccessor * pResAccessor
) = 0;

Arguments

Name Description
pRes Pointer to the resource animation block.
pResAccessor Resource accessor.

Return Values

None.

Description

Sets the resource used by the animation.

Sets the resources required by the animation block data and resource accessor to be bound to the animation using the Bind function.

It also allocates enough memory for animation targets included in the animation block for instances of AnimationLink required by the Bind function.

AnimationLink is required for each animation target (pane or material) being bound.

In the implementation of this function, animation block data must be registered using the SetAnimResource function.

See Also

Bind
SetAnimResource
lyt::AnimationLink

Revision History

2009/09/18


CONFIDENTIAL