work on moving shader loading/compilation to a separate file

This commit is contained in:
2025-08-17 00:32:43 -05:00
parent 06d99cf87e
commit 47564bb3cf
12 changed files with 199 additions and 72 deletions

14
inc/util.hpp Normal file
View File

@@ -0,0 +1,14 @@
#pragma once
#include <stdio.h>
template<class T> struct Array {
T* _data;
size_t len;
T& operator[](int i);
};
typedef unsigned int uint;
bool read_file(Array<char>* out, const char* filepath);