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:
@@ -0,0 +1,6 @@
|
||||
#include "utilities/commons.h"
|
||||
|
||||
rse_err_t object_load_gltf(const char* file_path)
|
||||
{
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user