diff --git a/Quik/IQuikTexture.cs b/Quik/IQuikTexture.cs deleted file mode 100644 index 540ee2a..0000000 --- a/Quik/IQuikTexture.cs +++ /dev/null @@ -1,69 +0,0 @@ -using System; -using Quik.Media; - -namespace Quik -{ - /// - /// Interface for texture instances. - /// - public abstract class QuikTexture : IEquatable, IDisposable - { - /// - /// Width of the texture. - /// - public abstract int Width { get; } - - /// - /// Height of the texture. - /// - public abstract int Height { get; } - - /// - /// True if the texture can have mipmaps. - /// - public abstract bool Mipmaps { get; } - - /// - /// Indicates whether this texture contains a signed distance field. - /// - public bool SignedDistanceField { get; set; } - - /// - /// Indicates whether this texture has premultiplied alpha. - /// - public bool PreMultipled { get; set; } - - /// - /// Upload texture data. - /// - /// Pointer to data. - /// Color format of the data. - /// Size of the texture data. - /// Mip level. - /// Pixel alignment. Expected to be 1, 2, 4, or 8. - public abstract void Image(IntPtr data, QImageFormat format, QVec2 size, int level, int alignment = 4); - - /// - /// Upload texture data. - /// - /// Pointer to data. - /// Color format for the data. - /// Location of the data in the texture. - /// Mip level. - /// Pixel alignment. Expected to be 1, 2, 4, or 8. - public abstract void SubImage(IntPtr data, QImageFormat format, QRectangle location, int level, int alignment = 4); - - /// - /// Generate the mip maps for the texture. - /// - public abstract void GenerateMipMaps(); - - public virtual bool Equals(QuikTexture other) - { - return base.Equals(other); - } - - public void Dispose() => Dispose(true); - protected virtual void Dispose(bool isDisposing) { } - } -} \ No newline at end of file diff --git a/Quik/IQuikTextureManager.cs b/Quik/IQuikTextureManager.cs deleted file mode 100644 index 1b87cd3..0000000 --- a/Quik/IQuikTextureManager.cs +++ /dev/null @@ -1,32 +0,0 @@ -using Quik.Media; -namespace Quik -{ - /// - /// Interface for QUIK texture managers. - /// - public interface IQuikTextureManager - { - /// - /// The context that owns the texture manager. - /// - // QuikContext Context { get; set; } - - /// - /// Create a texture. - /// - /// Size of the texture. - /// True in order to allow mipmaps. - /// The color format of the internal texture. - /// Handle to a texture object. - /// - /// All parameters are hints. If there is a situation where the texture does not - /// have mip levels, or format cannot be specified, ignore these parameters. - /// - QuikTexture CreateTexture(QVec2 size, bool mipmaps, QImageFormat format); - - /// - /// A function called on context clear. (useful for discarding old textures) - /// - void Clear(); - } -} \ No newline at end of file