Added glfwCopyGLState.

This commit is contained in:
Camilla Berglund
2011-05-08 15:29:36 +02:00
parent 6fa2730087
commit 8aa8b7c2e4
7 changed files with 58 additions and 0 deletions
+22
View File
@@ -587,3 +587,25 @@ GLFWAPI void glfwGetGLVersion(int* major, int* minor, int* rev)
*rev = window->glRevision;
}
//========================================================================
// Copies the specified OpenGL state categories from src to dst
//========================================================================
GLFWAPI void glfwCopyGLState(GLFWwindow hsrc, GLFWwindow hdst, unsigned long mask)
{
_GLFWwindow* src;
_GLFWwindow* dst;
if (!_glfwInitialized)
{
_glfwSetError(GLFW_NOT_INITIALIZED, NULL);
return;
}
src = (_GLFWwindow*) hsrc;
dst = (_GLFWwindow*) hdst;
_glfwPlatformCopyGLState(src, dst, mask);
}