This commit is contained in:
2019-02-19 16:16:13 +01:00
parent 4645e40b62
commit 4247ae3659
7 changed files with 200 additions and 87 deletions
+2 -1
View File
@@ -57,7 +57,8 @@ void runProgram(GLFWwindow* window, CommandLineOptions options)
void handleKeyboardInput(GLFWwindow* window)
{
// Use escape key for terminating the GLFW window
if (glfwGetKey(window, GLFW_KEY_ESCAPE) == GLFW_PRESS)
if (glfwGetKey(window, GLFW_KEY_ESCAPE) == GLFW_PRESS
|| glfwGetKey(window, GLFW_KEY_Q) == GLFW_PRESS)
{
glfwSetWindowShouldClose(window, GL_TRUE);
}