Creates a new animation of the specified parameters.
Namespace:
SGP.XSpaceAssembly: SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825
Syntax
C# |
---|
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)] public XSimpleSpriteAnimator AddAnimation( Object animationIndex, Texture texture, int w, int h ) |
Parameters
- animationIndex
- Type: System..::.Object
Key of the added animation, using which will be accessible through an iterator.
- texture
- Type: Texture
Texture from which the animation will be created.
- w
- Type: System..::.Int32
Number of frames in the X axis, to which the image will be cut.
- h
- Type: System..::.Int32
Number of frames in the Y axis, to which the image will be cut.
Return Value
Returns the created XSimpleSpriteAnimator animation.
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentNullException | texture is nullNothingnullptra null reference (Nothing in Visual Basic). |