Fixed compiler error

This commit is contained in:
Juan Pablo Arce
2021-04-22 16:35:46 -03:00
parent d0b1ac96a7
commit 841d755394

View File

@@ -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);
}
/// <summary>
/// Helper class for drawing text strings and sprites in one or more optimized batches.
/// </summary>
public class SpriteBatch : GraphicsResource
public class SpriteBatch : GraphicsResource, ISpriteBatch
{
#region Private Fields
readonly SpriteBatcher _batcher;