summaryrefslogtreecommitdiff
path: root/src/resources/obj.c
diff options
context:
space:
mode:
authorOmniscient <omniscient.oce@gmail.com>2024-03-05 22:21:08 +1100
committerOmniscient <omniscient.oce@gmail.com>2024-03-05 22:21:08 +1100
commit6a849ab47bf585a9948ef6225915a421eff3902f (patch)
tree6b2bc64ec1c16cc1158b917d75d8a3896becf5a8 /src/resources/obj.c
parentd5ae547334b5f8229313182705da42c5e904a633 (diff)
remove some comments
Diffstat (limited to 'src/resources/obj.c')
-rw-r--r--src/resources/obj.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/resources/obj.c b/src/resources/obj.c
index 994e12a..fca6b0e 100644
--- a/src/resources/obj.c
+++ b/src/resources/obj.c
@@ -37,9 +37,8 @@ bool load_material_lib(const char *path, material_darray *materials);
bool model_load_obj_str(const char *file_string, model *out_model, bool invert_textures_y);
model_handle model_load_obj(core *core, const char *path, bool invert_textures_y) {
- printf("Path %s\n", path);
+ TRACE("Loading model at Path %s\n", path);
const char *file_string = string_from_file(path);
- /* printf("Loaded file %s\n", file_string); */
model model;
bool success = model_load_obj_str(file_string, &model, invert_textures_y);
@@ -196,9 +195,7 @@ bool model_load_obj_str(const char *file_string, model *out_model, bool invert_t
printf("num meshes: %ld\n", mesh_darray_len(meshes));
}
out_model->meshes = meshes;
- /* for (int i = 0; i < mesh_darray_len(meshes); i++) { */
- /* mesh_darray_push(&out_model->meshes, ((mesh *)meshes->data)[i]); */
- /* } */
+
// TODO: bounding box calculation for each mesh
// TODO: bounding box calculation for model