Method Draw
Draw(SpriteBatch, Vector2, Color)
Draws this AnimatedTilemap using the Microsoft.Xna.Framework.Graphics.SpriteBatch.
public void Draw(SpriteBatch spriteBatch, Vector2 position, Color color)
Parameters
spriteBatchSpriteBatchThe Microsoft.Xna.Framework.Graphics.SpriteBatch to use for rendering this AnimatedTilemap.
positionVector2The x- and y-coordinate location to render this AnimatedTilemap at.
colorColorThe 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
spriteBatchSpriteBatchThe Microsoft.Xna.Framework.Graphics.SpriteBatch to use for rendering this AnimatedTilemap.
positionVector2The x- and y-coordinate location to render this AnimatedTilemap at.
colorColorThe color mask to apply when rendering this AnimatedTilemap.
scalefloatThe amount of scaling to apply when rendering this AnimatedTilemap.
layerDepthfloatThe 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
spriteBatchSpriteBatchThe Microsoft.Xna.Framework.Graphics.SpriteBatch to use for rendering the AnimatedTilemap.
positionVector2The x- and y-coordinate location to render this AnimatedTilemap at.
colorColorThe color mask to apply when rendering this AnimatedTilemap.
scaleVector2The amount of scaling to apply when rendering this AnimatedTilemap.
layerDepthfloatThe layer depth to apply when rendering this AnimatedTilemap.