Added window iconification callback.

This commit is contained in:
Camilla Berglund
2010-09-20 02:22:35 +02:00
parent 871f3d172e
commit 0d7e1794a5
8 changed files with 51 additions and 1 deletions
+16
View File
@@ -1122,6 +1122,22 @@ GLFWAPI void glfwSetWindowFocusCallback(GLFWwindow window, GLFWwindowfocusfun cb
}
//========================================================================
// Set callback function for window iconification events
//========================================================================
GLFWAPI void glfwSetWindowIconifyCallback(GLFWwindow window, GLFWwindowiconifyfun cbfun)
{
if (!_glfwInitialized)
{
_glfwSetError(GLFW_NOT_INITIALIZED);
return;
}
window->windowIconifyCallback = cbfun;
}
//========================================================================
// Poll for new window and input events and close any flagged windows
//========================================================================