static void KeyCallback(GLFWwindow *window, int key, int scancode, int action, int mods) { if(action == GLFW_PRESS) { switch(key) { case 'W': gDrawWireframe = !gDrawWireframe; break; default: bool quit = gSceneController->Key(key, scancode, action, mods); if(quit) glfwSetWindowShouldClose(window, GL_TRUE); break; } } }