x11 window and opengl initialization and drawing of basic quad

This commit is contained in:
2023-09-03 00:51:45 +03:00
parent 295f5707fa
commit 2023497beb
16 changed files with 27559 additions and 7 deletions
+9
View File
@@ -0,0 +1,9 @@
#pragma once
typedef struct Shader {
int program;
} Shader;
void read_shader_file(const char *path, char **buf);
Shader create_shader(const char *vertex_path, const char *fragment_path);
void use_shader(Shader shader);