Add gltf loader

Added MIT licensed external library for loading gltf
files

Signed-off-by: Piotr Krygier <piotrkrygier@everyonecancode@xyz>
This commit is contained in:
Piotr Krygier
2026-03-12 13:21:24 +01:00
parent c6825caa69
commit dd70f5e5b0
7 changed files with 7289 additions and 6 deletions
+6
View File
@@ -0,0 +1,6 @@
#include "utilities/commons.h"
rse_err_t object_load_gltf(const char* file_path)
{
}
+2 -2
View File
@@ -44,9 +44,9 @@ rse_err_t shader_create_module(struct graphics_context_t* context,
}
/* Read shader file */
file_read(shader_path, &buffer_size, NULL);
file_read_bytes(shader_path, &buffer_size, NULL);
rse_malloc(buffer, buffer_size);
file_read(shader_path, &buffer_size, buffer);
file_read_bytes(shader_path, &buffer_size, buffer);
create_info.sType = VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO;
create_info.pNext = NULL;
+7
View File
@@ -263,6 +263,13 @@ rse_err_t rse_graphics_main_loop(struct graphics_context_t* context)
return status;
}
// rse_err_t rse_graphics_load_model(struct graphics_context_t* context, const char* model_path, rse_id_t* model_id)
// {
// rse_err_t status = RSE_ERROR_NO_ERROR;
//
// return status;
// }
void rse_graphics_deinit(struct graphics_context_t* context)
{
vulkan_deinit(context);