buffer callback + input
This commit is contained in:
7
pog.cpp
7
pog.cpp
@@ -114,3 +114,10 @@ int main() {
|
||||
glfwTerminate();
|
||||
return 0;
|
||||
}
|
||||
void framebuffer_size_callback(GLFWwindow *window, int width, int height) {
|
||||
glViewport(0, 0, width, height);
|
||||
}
|
||||
void processInput(GLFWwindow *window) {
|
||||
if (glfwGetKey(window, GLFW_KEY_ESCAPE) == GLFW_PRESS)
|
||||
glfwSetWindowShouldClose(window, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user