summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authororangerot <orangerot@orangerot.dev>2025-10-13 21:11:51 +0200
committerorangerot <orangerot@orangerot.dev>2025-10-13 21:11:51 +0200
commit78b29d66ebb049cc46aef8244e702ed7729b85cd (patch)
tree0a18145450956cac3b894c7772f0b59a11d33206
parent37a07856a7b6592cbe63d1caf3a610f7867e0bf9 (diff)
fix: remove spng dependency
-rw-r--r--main.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/main.c b/main.c
index 2a94c73..9a65e6e 100644
--- a/main.c
+++ b/main.c
@@ -1,6 +1,5 @@
#include <stdint.h>
#include <stdio.h>
-#include <spng.h>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
@@ -52,19 +51,6 @@ const char *fragment_shader_source =
" FragColor = texture(texture1, TexCoord);\n"
"}\n";
-void character_callback(GLFWwindow* window, unsigned int codepoint) {
- printf("%c\n", codepoint);
-}
-
-void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) {
- if (action != GLFW_PRESS) return;
- switch (key) {
- case GLFW_KEY_ENTER:
- break;
- case GLFW_KEY_BACKSPACE:
- break;
- }
-}
void framebuffer_size_callback(GLFWwindow* window, int width, int height) {
glViewport(0, 0, width, height);