121 void SetKeyCallback(std::function<
void(
int,
int,
int,
int)> callback);
152 bool RecreateContext();
154 static void ErrorCallback(
int error,
const char* description);
155 static void FramebufferSizeCallbackInternal(GLFWwindow* window,
int width,
int height);
156 static void KeyCallbackInternal(GLFWwindow* window,
int key,
int scancode,
int action,
int mods);
157 static void WindowCloseCallbackInternal(GLFWwindow* window);
159 GLFWwindow* m_window =
nullptr;
163 bool m_initialized =
false;
166 int m_contextRecoveryAttempts = 0;
167 static constexpr int MAX_RECOVERY_ATTEMPTS = 3;
170 std::function<void(
int,
int)> m_framebufferSizeCallback;
171 std::function<void(
int,
int,
int,
int)> m_keyCallback;
172 std::function<void()> m_windowCloseCallback;
173 std::function<bool()> m_contextLossCallback;