summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authoromnisci3nce <omniscient.oce@gmail.com>2024-07-17 23:12:42 +1000
committeromnisci3nce <omniscient.oce@gmail.com>2024-07-17 23:12:42 +1000
commitc3737fff1be704e14a2bada69bbf8a6709c5f670 (patch)
treeaa2225901f26598b07855a65a944354fbedc40b1 /src/resources
parentf8641a5cc4c8baf1f0a7be3685afc219d90143d9 (diff)
wip shader layouts for common stuff
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/gltf.c8
-rw-r--r--src/resources/loaders.h4
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,