Update code to work with new version of ImGui.

UpdateImGuiTexture now handles creating font textures and modifying them.
This commit is contained in:
TryTwo
2025-08-18 05:38:14 -07:00
parent 7315acb981
commit affc22f17d
4 changed files with 117 additions and 29 deletions
+4 -1
View File
@@ -10,15 +10,18 @@
#include "Common/MathUtil.h"
#include "VideoCommon/TextureConfig.h"
struct ImTextureRef;
class AbstractTexture
{
public:
explicit AbstractTexture(const TextureConfig& c);
virtual ~AbstractTexture() = default;
// Support implicit conversion between AbstractTexture and ImTextureId
// Support implicit conversion between AbstractTexture and ImTextureId and ImTextureRef.
using imgui_texture_id = unsigned long long;
operator imgui_texture_id() const { return reinterpret_cast<imgui_texture_id>(this); }
operator ImTextureRef() const;
virtual void CopyRectangleFromTexture(const AbstractTexture* src,
const MathUtil::Rectangle<int>& src_rect, u32 src_layer,