Added GLFW_VISIBLE window hint and parameter.

This commit is contained in:
Camilla Berglund
2012-08-21 21:18:09 +02:00
parent 3d2722dc4c
commit 8bb5c59d2d
7 changed files with 49 additions and 3 deletions
+16
View File
@@ -131,6 +131,22 @@
return NSTerminateCancel;
}
- (void)applicationDidHide:(NSNotification *)notification
{
_GLFWwindow* window;
for (window = _glfwLibrary.windowListHead; window; window = window->next)
_glfwInputWindowVisibility(window, GL_FALSE);
}
- (void)applicationDidUnhide:(NSNotification *)notification
{
_GLFWwindow* window;
for (window = _glfwLibrary.windowListHead; window; window = window->next)
_glfwInputWindowVisibility(window, GL_TRUE);
}
@end