working rotation and zoom. pan bad

This commit is contained in:
2025-08-18 13:41:15 -05:00
parent 2a1654e80c
commit a00bac0b3f
15 changed files with 320 additions and 204 deletions

View File

@@ -5,45 +5,9 @@
template<class T> struct array {
T* data;
size_t len;
T& operator[](int i);
inline T& operator[](int i) { return data[i]; }
};
typedef unsigned int uint;
bool read_file(array<char>* out, const char* filepath);
struct vec4 {
float x;
float y;
float z;
float w;
};
struct vec3 {
float x;
float y;
float z;
};
struct vec2 {
float x;
float y;
};
struct vec4i {
int x;
int y;
int z;
int w;
};
struct vec3i {
int x;
int y;
int z;
};
struct vec2i {
int x;
int y;
};