From 841d755394c6da98ec6de69e79c6ef65897fa07b Mon Sep 17 00:00:00 2001 From: Juan Pablo Arce Date: Thu, 22 Apr 2021 16:35:46 -0300 Subject: [PATCH] Fixed compiler error --- .../MonoGame.Framework/Graphics/SpriteBatch.cs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Libraries/MonoGame.Framework/Src/MonoGame.Framework/Graphics/SpriteBatch.cs b/Libraries/MonoGame.Framework/Src/MonoGame.Framework/Graphics/SpriteBatch.cs index 4b12f5c1f..a2cc3d4e3 100644 --- a/Libraries/MonoGame.Framework/Src/MonoGame.Framework/Graphics/SpriteBatch.cs +++ b/Libraries/MonoGame.Framework/Src/MonoGame.Framework/Graphics/SpriteBatch.cs @@ -7,10 +7,23 @@ using System.Text; namespace Microsoft.Xna.Framework.Graphics { + public interface ISpriteBatch + { + public void Draw(Texture2D texture, + Vector2 position, + Rectangle? sourceRectangle, + Color color, + float rotation, + Vector2 origin, + Vector2 scale, + SpriteEffects effects, + float layerDepth); + } + /// /// Helper class for drawing text strings and sprites in one or more optimized batches. /// - public class SpriteBatch : GraphicsResource + public class SpriteBatch : GraphicsResource, ISpriteBatch { #region Private Fields readonly SpriteBatcher _batcher;