Handling window minimizing

This commit is contained in:
Dynamitos committed 2023-12-28 21:42:18 +01:00
1 parent e18254ec29
commit 4b58ab84be
21 files changed
+109 -76

No files matched your search

+6 -1
View File
@@ -11,6 +11,7 @@ class Window
public:
Window();
virtual ~Window();
virtual void pollInput() = 0;
virtual void beginFrame() = 0;
virtual void endFrame() = 0;
virtual void onWindowCloseEvent() = 0;
@@ -34,11 +35,15 @@ public:
{
return framebufferHeight;
}
constexpr bool isPaused() const
{
return paused;
}
protected:
SeFormat framebufferFormat;
uint32 framebufferWidth;
uint32 framebufferHeight;
bool paused = false;
};
DEFINE_REF(Window)