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

Syntax

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

Arguments

Name Description
pRes Pointer to the resource animation block.
pResAccessor Resource accessor.
animNum The number of AnimationLinks to be allocated.

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 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.

See Also

Bind
SetAnimResource
lyt::AnimationLink

Revision History

2009/09/18


CONFIDENTIAL