FuncWorks.XNA.XTiled.Map.Draw C# (CSharp) Method

Draw() public method

Draws all visible tile layers
public Draw ( SpriteBatch spriteBatch, Rectangle region ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch XNA SpriteBatch instance; SpriteBatch.Begin() must be called before using this method
region Microsoft.Xna.Framework.Rectangle Region of the map in pixels to draw
return void
        public void Draw(SpriteBatch spriteBatch, Rectangle region)
        {
            this.Draw(spriteBatch, ref region, false);
        }

Same methods

Map::Draw ( SpriteBatch spriteBatch, Rectangle region, System.Boolean drawHiddenLayers ) : void