ex1 done
This commit is contained in:
+2
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user