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(QuikVec2 size, bool mipmaps, QuikImageFormat format);
///
/// A function called on context clear. (useful for discarding old textures)
///
void Clear();
}
}