IRenderable.cs 390 B

123456789101112131415161718192021
  1. using FontStashSharp.Interfaces;
  2. #if MONOGAME || FNA
  3. using Microsoft.Xna.Framework;
  4. #elif STRIDE
  5. using Stride.Core.Mathematics;
  6. #else
  7. using System.Drawing;
  8. using System.Numerics;
  9. using Color = Veldrid.RgbaFloat;
  10. #endif
  11. namespace FontStashSharp.RichText
  12. {
  13. public interface IRenderable
  14. {
  15. Point Size { get; }
  16. void Draw(FSRenderContext context, Vector2 position, Color color);
  17. }
  18. }