#pragma once #include #include #include #include #include #include #include #include typedef unsigned int uint; using namespace std; bool read_file(string* s, const char* filepath); vector split_str(string s, char delim); glm::mat4 quat_to_mat4(glm::quat q); float randf(); template T lerp(T start, T end, float t) { return t * end + (1 - t) * start; } template float ilerp(T start, T end, T pos) { return (pos - start) / (end - start); }