done scaffolding cml and adding resize functionality

This commit is contained in:
2024-10-06 10:23:07 +01:00
parent b95fc48252
commit 68a1787958
9 changed files with 92 additions and 13 deletions

View File

@@ -1,4 +1,5 @@
#include "export.h"
#include "glad.h"
#define GLFW_INCLUDE_NONE
#include <GLFW/glfw3.h>
@@ -6,3 +7,12 @@ int PRESS = GLFW_PRESS;
int REPEAT = GLFW_REPEAT;
int RELEASE = GLFW_RELEASE;
void framebufferSizeCallback(GLFWwindow* window, int width, int height) {
glViewport(0, 0, width, height);
mltonFramebufferSizeCallback(width, height);
}
void setFramebufferSizeCallback(GLFWwindow* window) {
glfwSetFramebufferSizeCallback(window, framebufferSizeCallback);
}