123456789101112131415161718192021222324252627282930313233343536 |
- #if PLATFORM_AGNOSTIC
- using System.Drawing;
- namespace FontStashSharp.Interfaces
- {
- /// <summary>
- /// Texture Creation Service
- /// </summary>
- public interface ITexture2DManager
- {
- /// <summary>
- /// Creates a texture of the specified size
- /// </summary>
- /// <param name="width"></param>
- /// <param name="height"></param>
- /// <returns></returns>
- Veldrid.Texture CreateTexture(int width, int height);
- /// <summary>
- /// Returns size of the specified texture
- /// </summary>
- /// <param name="texture"></param>
- /// <returns></returns>
- Size GetTextureSize(Veldrid.Texture texture);
- /// <summary>
- /// Sets RGBA data at the specified bounds
- /// </summary>
- /// <param name="bounds"></param>
- /// <param name="data"></param>
- void SetTextureData(Veldrid.Texture texture, Rectangle bounds, byte[] data);
- }
- }
- #endif
|