refactor shaders.c and print error logs

This commit is contained in:
2025-09-13 18:04:00 +02:00
parent 4753e79853
commit db2645a1b5
7 changed files with 70 additions and 51 deletions
+4 -5
View File
@@ -27,21 +27,20 @@ typedef struct File {
} File;
typedef struct ShaderProgram {
GLuint program;
bool error;
GLuint vertex_buffer;
GLuint program;
GLuint vertex_shader;
GLuint fragment_shader;
GLuint mvp_location;
GLuint vpos_location;
GLuint itime_location;
GLuint ires_location;
GLuint vertex_buffer;
GLuint vertex_array;
bool error;
GLuint vpos_location;
} ShaderProgram;
typedef GLFWwindow Window;