cleanup build. add demo project. add timing features to sync. switch to more std::string and std::vector usage over custom, hacky Array template

This commit is contained in:
2025-09-01 21:56:43 -05:00
parent b4e90dce4d
commit 75e72ba9ca
25 changed files with 663 additions and 1759 deletions

View File

@@ -2,6 +2,7 @@
#include <glm/ext/matrix_float4x4.hpp>
#include <glm/glm.hpp>
#include <string>
#include "util.hpp"
struct Body {
@@ -11,11 +12,11 @@ struct Body {
uint vao;
uint vbo;
uint shader;
Array<float> verts;
Array<int> faces;
std::vector<float> verts;
std::vector<int> faces;
glm::vec4 color;
};
bool load_body(Body* out_body, const char* obj_filepath);
bool load_body(Body* out_body, std::string filepath);
void draw_body(const Body& b);
void create_new_sphere(Body* b, float scale=1.0f);