nw::anim::res::CloneTextureAnim Function

Syntax

ResAnim CloneTextureAnim(
     os::IAllocator * allocator,
     const ResAnim & src
);

Arguments

Name Description
allocator
src

Return Values

Returns the ResAnim result from cloning. This ResAnim must be set up again.

Description

Clones texture pattern animations.

Shares texture pattern animations, so this is a shallow copy. Includes an internal reference to the original, so operation is not guaranteed if used after the clone source is destroyed.

Argument only accepts a MaterialAnimation. Passing a different type will cause the program to halt if asserts are enabled. If asserts are disabled, operation becomes unstable.


CONFIDENTIAL