8using EventFn = std::function<void(
int,
int)>;
31 void SetShouldCloseCallback(EventFn callbackFunction);
32 void SetResizeCallback(EventFn callbackFunction);
33 void SetMouseCallback(EventFn callbackFunction);
35 void SetVSync(
bool enabled);
36 void MakeCurrentContext();
41 void SetFullScreen(
bool fullscreen);
42 void SetVisible(
bool visibility);
44 inline bool IsVSyncEnabled()
48 inline GLFWwindow *GetNativeWindow()
54 bool isActive, vSyncState, isFullscreen =
false;
56 EventFn m_CloseEventCallback, m_ResizeEventCallback, m_MouseEventCallback;