ImguiDrawer::Prepare now calls RenderInternal

This commit is contained in:
SweetId
2023-11-16 18:04:30 +05:30
parent 741b593033
commit 8da1fa5db5
3 changed files with 16 additions and 5 deletions

View File

@@ -58,6 +58,8 @@ namespace Nz
static void GetAllocatorFunctions(ImGuiMemAllocFunc* allocFunc, ImGuiMemFreeFunc* freeFunc, void** userData);
private:
void RenderInternal();
void SetupInputs(Nz::WindowEventHandler& handler);
void Update(const Nz::Vector2i& mousePosition, const Nz::Vector2ui& displaySize, float dt);
@@ -78,6 +80,8 @@ namespace Nz
std::unordered_set<ImguiHandler*> m_handlers;
static Imgui* s_instance;
friend class ImguiDrawer;
};
}