From f74cf52946f4e569a26bc81105537b40be95c2c7 Mon Sep 17 00:00:00 2001 From: omnisci3nce Date: Fri, 12 Jul 2024 12:47:07 +1000 Subject: wip: big makeover --- src/resources/loaders.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/resources/loaders.h') diff --git a/src/resources/loaders.h b/src/resources/loaders.h index fe03ed9..d8437b9 100644 --- a/src/resources/loaders.h +++ b/src/resources/loaders.h @@ -2,8 +2,12 @@ #include "defines.h" #include "render_types.h" +#include "str.h" -struct core; +// --- Public API +ModelHandle Model_Load_obj(const char *path, bool invert_texture_y); +ModelHandle Model_Load_gltf(const char *path, bool invert_texture_y); -model_handle model_load_obj(const char *path, bool invert_texture_y); -model_handle model_load_gltf(const char *path, bool invert_texture_y); +// --- Internal +bool model_load_gltf_str(const char *file_string, const char *filepath, Str8 relative_path, + Model *out_model, bool invert_textures_y); -- cgit v1.2.3-70-g09d2