Renamed GLFW_SAMPLES and GLFW_SHOULD_CLOSE.

This commit is contained in:
Camilla Berglund
2012-12-31 19:45:13 +01:00
parent 8db1528c74
commit 21f41a2bb7
15 changed files with 24 additions and 23 deletions

View File

@@ -614,7 +614,7 @@ int main( void )
/* Check if we are still running */
if (glfwGetKey( window, GLFW_KEY_ESCAPE ))
break;
if (glfwGetWindowParam(window, GLFW_CLOSE_REQUESTED))
if (glfwGetWindowParam(window, GLFW_SHOULD_CLOSE))
break;
}

View File

@@ -502,7 +502,7 @@ int main(void)
// Check if the ESC key was pressed or the window should be closed
if (glfwGetKey(window, GLFW_KEY_ESCAPE))
break;
if (glfwGetWindowParam(window, GLFW_CLOSE_REQUESTED))
if (glfwGetWindowParam(window, GLFW_SHOULD_CLOSE))
break;
}

View File

@@ -90,7 +90,7 @@ int main(void)
// Check if the ESC key was pressed or the window should be closed
if (glfwGetKey(window, GLFW_KEY_ESCAPE))
break;
if (glfwGetWindowParam(window, GLFW_CLOSE_REQUESTED))
if (glfwGetWindowParam(window, GLFW_SHOULD_CLOSE))
break;
}