Added additional gamma test keys.

This commit is contained in:
Camilla Berglund 2011-09-06 15:44:47 +02:00
parent ca0dbdbb6e
commit 2f4d75bd15

View File

@ -52,11 +52,13 @@ static void key_callback(GLFWwindow window, int key, int action)
case GLFW_KEY_ESCAPE:
glfwCloseWindow(window);
break;
case GLFW_KEY_KP_ADD:
case GLFW_KEY_Q:
gamma += 0.1f;
printf("Gamma: %f\n", gamma);
glfwSetGamma(gamma);
break;
case GLFW_KEY_KP_SUBTRACT:
case GLFW_KEY_W:
gamma -= 0.1f;
printf("Gamma: %f\n", gamma);