Creates a new animation of the specified parameters.

Namespace:  SGP.XSpace
Assembly:  SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825

Syntax

C#
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
public XSimpleSpriteAnimator AddAnimation(
	Texture texture
)

Parameters

texture
Type: Texture
Texture from which the animation will be created.

Return Value

Returns the created XSimpleSpriteAnimator animation.

Exceptions

ExceptionCondition
System..::.ArgumentNullException texture is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also