Closed charlesdong closed 7 years ago
I agree, it makes everything much cleaner. I'm currently working on a major code overhaul for all tutorials and I'll be sure to include your suggestion in, thanks!
Should be in the code overhaul at this moment. Has yet to be reflected in the text content, which I'll work on the upcoming weeks.
Hi, Joey. I found that you use a key callback to handle key input in the LearnOpenGL tutorial. But GLFW also provides the
glfwGetKey()
function to query if a key is down. Also in the Camera tutorial, thekeys
array is not required if you useglfwGetKey()
(because GLFW already stores it for you).For example, the following function:
Can be replaced with: