ITexture2D.cs 624 B

12345678910111213141516171819202122232425
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Drawing;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace Veldrid.Common
  8. {
  9. /// <summary>
  10. /// Represents a 2D texture to use in <see cref="SpriteBatch{TTexture}"/>.
  11. /// </summary>
  12. public interface ITexture2D : IDisposable
  13. {
  14. /// <summary>
  15. /// A bool indicating whether this instance has been disposed.
  16. /// </summary>
  17. public bool IsDisposed { get; }
  18. /// <summary>
  19. /// The total size of the texture.
  20. /// </summary>
  21. public Size Size { get; }
  22. }
  23. }