Added glfwGetCurrentWindow.

This commit is contained in:
Camilla Berglund
2010-10-04 23:13:33 +02:00
parent f73f01b68c
commit 419f9f17a1
4 changed files with 23 additions and 0 deletions
+16
View File
@@ -639,6 +639,22 @@ GLFWAPI int glfwIsWindow(GLFWwindow window)
}
//========================================================================
// Returns GL_TRUE if the specified window handle is an actual window
//========================================================================
GLFWAPI GLFWwindow glfwGetCurrentWindow(void)
{
if (!_glfwInitialized)
{
_glfwSetError(GLFW_NOT_INITIALIZED);
return GL_FALSE;
}
return _glfwLibrary.currentWindow;
}
//========================================================================
// Set hints for opening the window
//========================================================================