file utility

This commit is contained in:
2025-09-12 18:41:18 +02:00
parent 45ea7731f0
commit fda0de78c7
6 changed files with 90 additions and 4 deletions
+9
View File
@@ -1,5 +1,7 @@
#include <glad/gl.h>
#include <linmath.h>
#include <stdbool.h>
#include <time.h>
#ifndef TYPES_H
#define TYPES_H
@@ -12,6 +14,13 @@ typedef struct Vertex {
vec2 pos;
} Vertex;
typedef struct File {
char *path;
char *content;
bool error;
time_t last_write;
} File;
typedef struct ShaderProgram {
GLuint program;