2024-02-23 20:49:17 -06:00

11 lines
287 B
C++

#include "funcs.h"
void framebuffer_callback(GLFWwindow* window, int width, int height) {
glViewport(0, 0, width, height);
}
void processInputs(GLFWwindow* window) {
if(glfwGetKey(window, GLFW_KEY_ESCAPE) == GLFW_PRESS) {
glfwSetWindowShouldClose(window, true);
}
}