fix: remove spng dependency
This commit is contained in:
parent
37a07856a7
commit
78b29d66eb
14
main.c
14
main.c
|
@ -1,6 +1,5 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <spng.h>
|
|
||||||
|
|
||||||
#include <glad/glad.h>
|
#include <glad/glad.h>
|
||||||
#include <GLFW/glfw3.h>
|
#include <GLFW/glfw3.h>
|
||||||
|
@ -52,19 +51,6 @@ const char *fragment_shader_source =
|
||||||
" FragColor = texture(texture1, TexCoord);\n"
|
" FragColor = texture(texture1, TexCoord);\n"
|
||||||
"}\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) {
|
void framebuffer_size_callback(GLFWwindow* window, int width, int height) {
|
||||||
glViewport(0, 0, width, height);
|
glViewport(0, 0, width, height);
|
||||||
|
|
Loading…
Reference in a new issue