ITexture Interface
Represents a 2D texture that can be rendered.
public interface ITexture : System.IDisposable
Derived
↳ RenderTargetTextureView
↳ SDL3Texture
Implements System.IDisposable
| Properties | |
|---|---|
| Bounds | Gets the bounding rectangle of the texture (0, 0, Width, Height). Convenience property for texture operations. |
| Height | Gets the height of the texture in pixels. |
| IsLoaded | Gets whether the texture is loaded and ready to use. |
| Name | Gets the name or path of the texture. |
| ScaleMode | Gets or sets the texture scale mode (linear or nearest neighbor). |
| SortKey | Gets a stable key used for sorting textures during batching. Must be deterministic for the lifetime of the texture within a process. |
| Width | Gets the width of the texture in pixels. |
| Methods | |
|---|---|
| NextSortKey() | Allocates the next globally unique sort key for texture batching. All ITexture implementations must use this to avoid key collisions. |