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

19
inc/body.hpp Normal file
View File

@@ -0,0 +1,19 @@
#pragma once
#include <glm/ext/matrix_float4x4.hpp>
#include <glm/glm.hpp>
#include "util.hpp"
struct body {
glm::mat4 pose;
uint ebo;
uint vao;
uint vbo;
uint shader;
array<float> verts;
array<int> faces;
glm::vec4 color;
};
bool load_body(body* out_body, const char* obj_filepath);
void draw_body(const body& b);