Dashboard/Quik/IQuikTextureManager.cs

32 lines
1.1 KiB
C#
Raw Normal View History

2023-06-29 13:17:32 +02:00
using Quik.Media;
2022-08-20 11:57:57 +02:00
namespace Quik
{
/// <summary>
/// Interface for QUIK texture managers.
/// </summary>
public interface IQuikTextureManager
{
/// <summary>
/// The context that owns the texture manager.
/// </summary>
// QuikContext Context { get; set; }
2022-08-20 11:57:57 +02:00
/// <summary>
/// Create a texture.
/// </summary>
/// <param name="size">Size of the texture.</param>
/// <param name="mipmaps">True in order to allow mipmaps.</param>
/// <param name="format">The color format of the internal texture.</param>
/// <returns>Handle to a texture object.</returns>
/// <remarks>
/// 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.
/// </remarks>
2023-06-29 13:17:32 +02:00
QuikTexture CreateTexture(QVec2 size, bool mipmaps, QImageFormat format);
2022-08-20 11:57:57 +02:00
/// <summary>
/// A function called on context clear. (useful for discarding old textures)
/// </summary>
void Clear();
}
}