Reformat tuple into a struct.

This commit is contained in:
2025-08-22 17:13:38 -05:00
parent c961ccf7cd
commit 0551a0a16e
4 changed files with 43 additions and 42 deletions

View File

@@ -120,11 +120,9 @@ void draw_body(const Body& b) {
set_uniform(b.shader, "color", b.color);
glBindVertexArray(b.vao);
glDrawElements(GL_TRIANGLES, b.faces.len, GL_UNSIGNED_INT, 0);
//glDisableVertexAttribArray(0);
}
void create_new_sphere(Body* b, float scale) {
assert(load_body(b, "Icosphere.obj"));
b->scale = scale;
b->pose = glm::translate(b->pose, glm::vec3(0, 0, 0));
}