Table of Contents

Delegate IndividualTiledMapRenderer.GetDepth

Namespace
MLEM.Extended.Tiled
Assembly
MLEM.Extended.dll

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

tile TiledMapTile

The tile whose depth to get

layer TiledMapTileLayer

The layer the tile is on

layerIndex int

The index of the layer in MonoGame.Extended.Tiled.TiledMap.TileLayers

position Point

The 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 .