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

Syntax

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

List of Overloaded Member Functions

SetResource ( const res::AnimationBlock *, ResourceAccessor * ) Sets the resource used by the animation.
SetResource ( const res::AnimationBlock *, ResourceAccessor *, u16 ) Sets the resource used by the animation.

Description of SetResource ( const res::AnimationBlock *, ResourceAccessor * )

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.

Description of SetResource ( const res::AnimationBlock *, ResourceAccessor *, u16 )

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

It also allocate memory for the number of AnimationLinks specified by animNum that are 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.


CONFIDENTIAL