Interface ISharedImmediateTexture
A texture with a backing instance of Dalamud.Interface.Textures.TextureWraps.IDalamudTextureWrap that is shared across multiple requesters.
Assembly: Dalamud.dll
public interface ISharedImmediateTexture
Derived:
Dalamud.Interface.Textures.ForwardingSharedImmediateTexture
Methods
GetWrapOrEmpty()
Gets the texture for use with the current frame, or an empty texture if unavailable.
IDalamudTextureWrap GetWrapOrEmpty()
Returns
Dalamud.Interface.Textures.TextureWraps.IDalamudTextureWrap: An instance of Dalamud.Interface.Textures.TextureWraps.IDalamudTextureWrap that is guaranteed to be available for the current frame being drawn.
GetWrapOrDefault(IDalamudTextureWrap?)
Gets the texture for use with the current frame, or a default value specified via <code class="paramref">defaultWrap</code> if unavailable.
IDalamudTextureWrap? GetWrapOrDefault(IDalamudTextureWrap? defaultWrap = null)
Returns
Dalamud.Interface.Textures.TextureWraps.IDalamudTextureWrap: An instance of Dalamud.Interface.Textures.TextureWraps.IDalamudTextureWrap that is guaranteed to be available for the current frame being drawn.
Parameters
| Type | Name | Description |
|---|---|---|
| Dalamud.Interface.Textures.TextureWraps.IDalamudTextureWrap | defaultWrap | The default wrap to return if the requested texture was not immediately available. |
TryGetWrap(out IDalamudTextureWrap?, out Exception?)
Attempts to get the texture for use with the current frame.
bool TryGetWrap(out IDalamudTextureWrap? texture, out Exception? exception)
Returns
System.Boolean: true if <code class="paramref">texture</code> points to the loaded texture; false if the texture is
still being loaded, or the load has failed.