IFontStashRenderer.cs 661 B

123456789101112131415161718192021222324252627
  1. #if MONOGAME || FNA
  2. using Microsoft.Xna.Framework;
  3. using Microsoft.Xna.Framework.Graphics;
  4. #elif STRIDE
  5. using Stride.Core.Mathematics;
  6. using Stride.Graphics;
  7. using Texture2D = Stride.Graphics.Texture;
  8. #else
  9. using System.Drawing;
  10. using System.Numerics;
  11. using Color = Veldrid.RgbaFloat;
  12. using Texture2D = Veldrid.Texture;
  13. #endif
  14. namespace FontStashSharp.Interfaces
  15. {
  16. public interface IFontStashRenderer
  17. {
  18. #if MONOGAME || FNA || STRIDE
  19. GraphicsDevice GraphicsDevice { get; }
  20. #else
  21. ITexture2DManager TextureManager { get; }
  22. #endif
  23. void Draw(Texture2D texture, Vector2 pos, Rectangle? src, Color color, float rotation, Vector2 scale, float depth);
  24. }
  25. }