work on moving shader loading/compilation to a separate file
This commit is contained in:
14
inc/util.hpp
Normal file
14
inc/util.hpp
Normal 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);
|
||||
Reference in New Issue
Block a user