| AnimationInstanceTCreate Method |
Creates an instance of the
AnimationInstanceT class. (This method reuses a
previously recycled instance or allocates a new instance if necessary.)
Namespace: DigitalRune.AnimationAssembly: DigitalRune.Animation (in DigitalRune.Animation.dll) Version: 1.4.0.0 (1.4.1.14427)
Syntax public static AnimationInstance<T> Create(
IAnimation<T> animation
)
Public Shared Function Create (
animation As IAnimation(Of T)
) As AnimationInstance(Of T)
public:
static AnimationInstance<T>^ Create(
IAnimation<T>^ animation
)
static member Create :
animation : IAnimation<'T> -> AnimationInstance<'T>
Parameters
- animation
- Type: DigitalRune.AnimationIAnimationT
The animation that should be played back.
Return Value
Type:
AnimationInstanceT
A new or reusable instance of the
AnimationInstanceT class.
Exceptions Remarks
This method tries to obtain a previously recycled instance from a resource pool if resource
pooling is enabled (see ResourcePool.Enabled). If no
object is available, a new instance is automatically allocated on the heap.
The owner of the object should call Recycle when the instance is no longer
needed.
See Also