Delegate DrawDelegate
A delegate used by events that are invoked when something is drawn. This event has no EventPhase attached to it, since drawing is done in a sorted fashion anyway.
public delegate void DrawDelegate(GameTime time, object batch, Vector2 drawPos, Color? overrideColor)
Parameters
time
GameTimeThe game's current time
batch
objectThe sprite batch to use for drawing, which is either a Microsoft.Xna.Framework.Graphics.SpriteBatch or MLEM.Graphics.StaticSpriteBatch.
drawPos
Vector2The position that the object is drawn at
overrideColor
Color?An override color to draw the object with, or null to draw it with the default color
- Extension Methods