2024-05-03 11:18:50 +12:00
|
|
|
#include <gearlib.h>
|
2024-04-29 22:41:13 +12:00
|
|
|
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|