gearlib/src/events.c
2024-05-03 11:18:50 +12:00

12 lines
283 B
C

#include <gearlib.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);
}