aboutsummaryrefslogtreecommitdiff
path: root/src/Core/Window.h
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2025-08-14 01:24:24 +0200
committerhachem <im@hachem.wtf>2025-08-14 01:24:24 +0200
commit613f99e937e55f73dcec1251fdce4a9fda077a0f (patch)
treeb86ed54045783b47a0f856476a6465d3777b7005 /src/Core/Window.h
parente050dce79b67ae6386240567a994454711ab998d (diff)
[add]: implement an ImGUI layer
Diffstat (limited to 'src/Core/Window.h')
-rw-r--r--src/Core/Window.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Core/Window.h b/src/Core/Window.h
index c598bf2..26df099 100644
--- a/src/Core/Window.h
+++ b/src/Core/Window.h
@@ -35,10 +35,15 @@ namespace Donut
void SetCursorVisible(bool visible);
bool IsCursorLocked() const { return m_CursorLocked; }
bool IsCursorVisible() const { return m_CursorVisible; }
+
+ void InitImGui();
+ void BeginImGuiFrame();
+ void EndImGuiFrame();
private:
void Init();
void Shutdown();
-
+ void ShutdownImGui();
+
static void GLFWErrorCallback(int error, const char* description);
static void GLFWWindowCloseCallback(GLFWwindow* window);
static void GLFWWindowSizeCallback(GLFWwindow* window, int width, int height);