diff options
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/gltf.c | 8 | ||||
-rw-r--r-- | src/resources/loaders.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/resources/gltf.c b/src/resources/gltf.c index 69ae9e1..56d5660 100644 --- a/src/resources/gltf.c +++ b/src/resources/gltf.c @@ -50,10 +50,10 @@ ModelHandle model_load_gltf(const char *path, bool invert_texture_y) { const char *file_string = string_from_file(path); ModelHandle handle; - // Model *model = model_pool_alloc(&g_core.models, &handle); - // model->name = str8_cstr_view(path); - // model->meshes = mesh_darray_new(1); - // model->materials = material_darray_new(1); + Model *model = Model_pool_alloc(&g_core.models, &handle); + model->name = Str8_cstr_view(path); + model->meshes = Mesh_darray_new(1); + model->materials = Material_darray_new(1); // bool success = // model_load_gltf_str(file_string, path, relative_path.path, model, invert_texture_y); diff --git a/src/resources/loaders.h b/src/resources/loaders.h index 3ec41fa..677e2a7 100644 --- a/src/resources/loaders.h +++ b/src/resources/loaders.h @@ -5,8 +5,8 @@ #include "str.h" // --- Public API -PUB ModelHandle Model_Load_obj(const char *path, bool invert_texture_y); -PUB ModelHandle Model_Load_gltf(const char *path, bool invert_texture_y); +PUB ModelHandle ModelLoad_obj(const char *path, bool invert_texture_y); +PUB ModelHandle ModelLoad_gltf(const char *path, bool invert_texture_y); // --- Internal bool model_load_gltf_str(const char *file_string, const char *filepath, Str8 relative_path, |