summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index b34afeff..36d71fd7 100644
--- a/src/core.c
+++ b/src/core.c
@@ -831,6 +831,24 @@ void SetWindowSize(int width, int height)
#endif
}
+// Set window visibility
+void SetWindowVisible(bool visible)
+{
+#if defined(PLATFORM_DESKTOP)
+ if (visible) glfwShowWindow(window);
+ else glfwHideWindow(window);
+#endif
+}
+
+// Set window visibility
+bool IsWindowVisible()
+{
+#if defined(PLATFORM_DESKTOP)
+ return glfwGetWindowAttrib(window, GLFW_VISIBLE) != GL_FALSE;
+#endif
+ return true;
+}
+
// Get current screen width
int GetScreenWidth(void)
{