Stop render when iconified

This commit is contained in:
MihailRis
2023-12-28 18:55:54 +03:00
parent 837fd2f32f
commit a1e3706c8f
3 changed files with 14 additions and 3 deletions
+4
View File
@@ -50,6 +50,10 @@ bool Window::isMaximized() {
return glfwGetWindowAttrib(window, GLFW_MAXIMIZED);
}
bool Window::isIconified() {
return glfwGetWindowAttrib(window, GLFW_ICONIFIED);
}
bool Window::isFocused()
{
return glfwGetWindowAttrib(window, GLFW_FOCUSED);
+1
View File
@@ -39,6 +39,7 @@ public:
static bool isFullscreen();
static bool isMaximized();
static bool isFocused();
static bool isIconified();
static void pushScissor(glm::vec4 area);
static void popScissor();