Table of Contents

Method Draw

Namespace
MonoGame.Aseprite
Assembly
MonoGame.Aseprite.dll

Draw(SpriteBatch, Vector2, Color)

Draws this AnimatedTilemap using the Microsoft.Xna.Framework.Graphics.SpriteBatch.

public void Draw(SpriteBatch spriteBatch, Vector2 position, Color color)

Parameters

spriteBatch SpriteBatch

The Microsoft.Xna.Framework.Graphics.SpriteBatch to use for rendering this AnimatedTilemap.

position Vector2

The x- and y-coordinate location to render this AnimatedTilemap at.

color Color

The color mask to apply when rendering this AnimatedTilemap.

Draw(SpriteBatch, Vector2, Color, float, float)

Draws this AnimatedTilemap using the Microsoft.Xna.Framework.Graphics.SpriteBatch.

public void Draw(SpriteBatch spriteBatch, Vector2 position, Color color, float scale, float layerDepth)

Parameters

spriteBatch SpriteBatch

The Microsoft.Xna.Framework.Graphics.SpriteBatch to use for rendering this AnimatedTilemap.

position Vector2

The x- and y-coordinate location to render this AnimatedTilemap at.

color Color

The color mask to apply when rendering this AnimatedTilemap.

scale float

The amount of scaling to apply when rendering this AnimatedTilemap.

layerDepth float

The layer depth to apply when rendering this AnimatedTilemap.

Draw(SpriteBatch, Vector2, Color, Vector2, float)

Draws this AnimatedTilemap using the Microsoft.Xna.Framework.Graphics.SpriteBatch.

public void Draw(SpriteBatch spriteBatch, Vector2 position, Color color, Vector2 scale, float layerDepth)

Parameters

spriteBatch SpriteBatch

The Microsoft.Xna.Framework.Graphics.SpriteBatch to use for rendering the AnimatedTilemap.

position Vector2

The x- and y-coordinate location to render this AnimatedTilemap at.

color Color

The color mask to apply when rendering this AnimatedTilemap.

scale Vector2

The amount of scaling to apply when rendering this AnimatedTilemap.

layerDepth float

The layer depth to apply when rendering this AnimatedTilemap.