font texture now stored in Imgui module

removed Imgui::NZ::Init() and Imgui::NZ::Shutdown
This commit is contained in:
SweetId
2022-07-24 18:00:29 +02:00
parent 32d98f5a04
commit eceef3af2a
2 changed files with 32 additions and 57 deletions

View File

@@ -30,7 +30,7 @@ namespace Nz
Imgui(Config config);
~Imgui();
bool Init(Nz::Window& window);
bool Init(Nz::Window& window, bool bLoadDefaultFont = true);
void Update(Nz::Window& window, float dt);
void Render(Nz::RenderWindow& window, Nz::RenderFrame& frame);
@@ -53,6 +53,7 @@ namespace Nz
bool LoadTexturedPipeline();
bool LoadUntexturedPipeline();
void UpdateFontTexture();
void RenderDrawLists(Nz::RenderWindow& window, Nz::RenderFrame& frame, ImDrawData* drawData);
@@ -73,6 +74,8 @@ namespace Nz
std::shared_ptr<Nz::RenderPipeline> Pipeline;
} m_untexturedPipeline;
std::shared_ptr<Nz::Texture> m_fontTexture;
static Imgui* s_instance;
};
}