gearlib/src/events.c

12 lines
282 B
C
Raw Normal View History

2024-04-29 22:41:13 +12:00
#include <events.h>
void framebuffer_size_callback(Window window, int width, int height) {
glViewport(0, 0, width, height);
}
void process_input(Window window) {
if(glfwGetKey(window, GLFW_KEY_ESCAPE) == GLFW_PRESS)
glfwSetWindowShouldClose(window, GLFW_TRUE);
}