Method Draw
Draw(SpriteBatch, Vector2, Color)
Draws this TilemapLayer layer using the Microsoft.Xna.Framework.Graphics.SpriteBatch.
public void Draw(SpriteBatch spriteBatch, Vector2 position, Color color)
Parameters
spriteBatch
SpriteBatchThe Microsoft.Xna.Framework.Graphics.SpriteBatch to use for rendering this TilemapLayer.
position
Vector2The x- and y-coordinate location to draw this TilemapLayer at. Drawing this TilemapLayer using this method ignores the Offset.
color
ColorThe color mask to apply when rendering this TilemapLayer.
Draw(SpriteBatch, Vector2, Color, float, float)
Draws this TilemapLayer layer using the Microsoft.Xna.Framework.Graphics.SpriteBatch.
public void Draw(SpriteBatch spriteBatch, Vector2 position, Color color, float scale, float layerDepth)
Parameters
spriteBatch
SpriteBatchThe Microsoft.Xna.Framework.Graphics.SpriteBatch to use for rendering this TilemapLayer.
position
Vector2The x- and y-coordinate location to draw this TilemapLayer at. Drawing this TilemapLayer using this method ignores the Offset.
color
ColorThe color mask to apply when rendering this TilemapLayer.
scale
floatThe amount of scaling to apply when rendering this TilemapLayer.
layerDepth
floatThe layer depth to apply when rendering this TilemapLayer.
Draw(SpriteBatch, Vector2, Color, Vector2, float)
Draws this TilemapLayer layer using the Microsoft.Xna.Framework.Graphics.SpriteBatch.
public void Draw(SpriteBatch spriteBatch, Vector2 position, Color color, Vector2 scale, float layerDepth)
Parameters
spriteBatch
SpriteBatchThe Microsoft.Xna.Framework.Graphics.SpriteBatch to use for rendering this TilemapLayer.
position
Vector2The x- and y-coordinate location to draw this TilemapLayer at. Drawing this TilemapLayer using this method ignores the Offset.
color
ColorThe color mask to apply when rendering this TilemapLayer.
scale
Vector2The amount of scaling to apply when rendering this TilemapLayer.
layerDepth
floatThe layer depth to apply when rendering this TilemapLayer.