From 9d200bc8f749f8d64e4f1e630ddf3a797b9b8fe1 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 15 Mar 2025 13:50:51 +0000 Subject: Add operator to get ImTextureID from an Icon --- ui/icon.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ui/icon.h') diff --git a/ui/icon.h b/ui/icon.h index 76cd3ae..5f3a812 100644 --- a/ui/icon.h +++ b/ui/icon.h @@ -1,5 +1,6 @@ #pragma once +#include "imgui_wrap.h" #include #include #include @@ -13,6 +14,7 @@ public: void Bind() const; const glm::vec2 size; + ImTextureID operator*() const; private: glTexture m_texture; -- cgit v1.2.3