demo worthy. Plenty more work could be done, but not terrible

This commit is contained in:
2025-09-11 13:21:53 -05:00
parent 2821847ce2
commit 6d47b81b1f
11 changed files with 48 additions and 57 deletions

View File

@@ -69,9 +69,10 @@ void draw_body(const Body& b) {
glDrawElements(GL_TRIANGLES, b.data.faces_len, GL_UNSIGNED_INT, 0);
}
void create_new_sphere(Body* b, float scale) {
void create_new_sphere(Body* b, float scale, glm::vec4 color) {
assert(load_body(b, "Icosphere.obj"));
b->scale = scale;
b->color = color;
}
// I need to write a good obj file parser at some point. This is basically garbage