mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-31 12:53:41 +01:00
chore: don't use ImGuiScene.TextureWrap for any external API, IDalamudTextureWrap does not inherit from ImGuiScene.TextureWrap any longer
This commit is contained in:
parent
af52da06b0
commit
6fbcd0e0e4
17 changed files with 91 additions and 78 deletions
|
|
@ -241,7 +241,7 @@ internal class InterfaceManager : IDisposable, IServiceType
|
|||
/// </summary>
|
||||
/// <param name="filePath">The filepath to load.</param>
|
||||
/// <returns>A texture, ready to use in ImGui.</returns>
|
||||
public TextureWrap? LoadImage(string filePath)
|
||||
public IDalamudTextureWrap? LoadImage(string filePath)
|
||||
{
|
||||
if (this.scene == null)
|
||||
throw new InvalidOperationException("Scene isn't ready.");
|
||||
|
|
@ -264,7 +264,7 @@ internal class InterfaceManager : IDisposable, IServiceType
|
|||
/// </summary>
|
||||
/// <param name="imageData">The data to load.</param>
|
||||
/// <returns>A texture, ready to use in ImGui.</returns>
|
||||
public TextureWrap? LoadImage(byte[] imageData)
|
||||
public IDalamudTextureWrap? LoadImage(byte[] imageData)
|
||||
{
|
||||
if (this.scene == null)
|
||||
throw new InvalidOperationException("Scene isn't ready.");
|
||||
|
|
@ -290,7 +290,7 @@ internal class InterfaceManager : IDisposable, IServiceType
|
|||
/// <param name="height">The height in pixels.</param>
|
||||
/// <param name="numChannels">The number of channels.</param>
|
||||
/// <returns>A texture, ready to use in ImGui.</returns>
|
||||
public TextureWrap? LoadImageRaw(byte[] imageData, int width, int height, int numChannels)
|
||||
public IDalamudTextureWrap? LoadImageRaw(byte[] imageData, int width, int height, int numChannels)
|
||||
{
|
||||
if (this.scene == null)
|
||||
throw new InvalidOperationException("Scene isn't ready.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue