Delegate IndividualTiledMapRenderer.GetDepth
A delegate method used for an IndividualTiledMapRenderer's depth function. The idea is to return a depth (between 0 and 1) for the given tile that determines where in the sprite batch it should be rendererd. Note that, for this depth function to take effect, the sprite batch needs to begin with Microsoft.Xna.Framework.Graphics.SpriteSortMode.FrontToBack or Microsoft.Xna.Framework.Graphics.SpriteSortMode.BackToFront.
public delegate float IndividualTiledMapRenderer.GetDepth(TiledMapTile tile, TiledMapTileLayer layer, int layerIndex, Point position)
Parameters
tileTiledMapTileThe tile whose depth to get
layerTiledMapTileLayerThe layer the tile is on
layerIndexintThe index of the layer in MonoGame.Extended.Tiled.TiledMap.TileLayers
positionPointThe tile position of this tile
Returns
- float
- A delegate method used for an 's depth function. The idea is to return a depth (between 0 and 1) for the given tile that determines where in the sprite batch it should be rendererd. Note that, for this depth function to take effect, the sprite batch needs to begin with or .