buffer callback + input

This commit is contained in:
2024-08-01 12:31:06 +03:00
parent 3c49645cf6
commit 9cb7a7592b

View File

@@ -114,3 +114,10 @@ int main() {
glfwTerminate(); glfwTerminate();
return 0; 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);
}