mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 13:04:35 +00:00
Added additional gamma test keys.
This commit is contained in:
parent
ca0dbdbb6e
commit
2f4d75bd15
@ -52,11 +52,13 @@ static void key_callback(GLFWwindow window, int key, int action)
|
|||||||
case GLFW_KEY_ESCAPE:
|
case GLFW_KEY_ESCAPE:
|
||||||
glfwCloseWindow(window);
|
glfwCloseWindow(window);
|
||||||
break;
|
break;
|
||||||
|
case GLFW_KEY_KP_ADD:
|
||||||
case GLFW_KEY_Q:
|
case GLFW_KEY_Q:
|
||||||
gamma += 0.1f;
|
gamma += 0.1f;
|
||||||
printf("Gamma: %f\n", gamma);
|
printf("Gamma: %f\n", gamma);
|
||||||
glfwSetGamma(gamma);
|
glfwSetGamma(gamma);
|
||||||
break;
|
break;
|
||||||
|
case GLFW_KEY_KP_SUBTRACT:
|
||||||
case GLFW_KEY_W:
|
case GLFW_KEY_W:
|
||||||
gamma -= 0.1f;
|
gamma -= 0.1f;
|
||||||
printf("Gamma: %f\n", gamma);
|
printf("Gamma: %f\n", gamma);
|
||||||
|
Loading…
Reference in New Issue
Block a user