From dd295aca1bbb6f32a769b16e25f1575b2bdbbc52 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Fri, 12 Nov 2021 20:31:47 +0100 Subject: [PATCH] clarify StaticSpriteBatch depth documentation --- MLEM/Misc/StaticSpriteBatch.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MLEM/Misc/StaticSpriteBatch.cs b/MLEM/Misc/StaticSpriteBatch.cs index 2ff2e5d..184f5b5 100644 --- a/MLEM/Misc/StaticSpriteBatch.cs +++ b/MLEM/Misc/StaticSpriteBatch.cs @@ -9,7 +9,7 @@ namespace MLEM.Misc { /// A static sprite batch is a variation of that keeps all batched items in a , allowing for them to be drawn multiple times. /// To add items to a static sprite batch, use to begin batching, to clear currently batched items, Add and its various overloads to add batch items, to remove them again, and to end batching. /// To draw the batched items, call . - /// Unlike a , items added to a static sprite batch will be drawn in an arbitrary order. If depth sorting is desired, the 's should be modified to include depth. + /// Unlike a , items added to a static sprite batch will be drawn in an arbitrary order. If depth sorting is desired, the 's should be modified to include depth, and a that takes depth into account should be passed to . /// public class StaticSpriteBatch : IDisposable { @@ -171,7 +171,7 @@ namespace MLEM.Misc { /// Center of the rotation. 0,0 by default. /// A scaling of this sprite. /// Modificators for drawing. Can be combined. - /// A depth of the layer of this sprite. + /// A depth of the layer of this sprite. See documentation for information on enabling depth support. /// The that was created from the added data public Item Add(Texture2D texture, Vector2 position, Rectangle? sourceRectangle, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth) { origin *= scale; @@ -216,7 +216,7 @@ namespace MLEM.Misc { /// Center of the rotation. 0,0 by default. /// A scaling of this sprite. /// Modificators for drawing. Can be combined. - /// A depth of the layer of this sprite. + /// A depth of the layer of this sprite. See documentation for information on enabling depth support. /// The that was created from the added data public Item Add(Texture2D texture, Vector2 position, Rectangle? sourceRectangle, Color color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float layerDepth) { return this.Add(texture, position, sourceRectangle, color, rotation, origin, new Vector2(scale), effects, layerDepth); @@ -233,7 +233,7 @@ namespace MLEM.Misc { /// A rotation of this sprite. /// Center of the rotation. 0,0 by default. /// Modificators for drawing. Can be combined. - /// A depth of the layer of this sprite. + /// A depth of the layer of this sprite. See documentation for information on enabling depth support. /// The that was created from the added data public Item Add(Texture2D texture, Rectangle destinationRectangle, Rectangle? sourceRectangle, Color color, float rotation, Vector2 origin, SpriteEffects effects, float layerDepth) { Vector2 texTl, texBr;