Refactor project

Crealned up some TODOs, FIXMEs etc. Added better error handling. Looks
better, feels better.
This commit is contained in:
Piotr Krygier committed 2023-10-10 10:46:12 +02:00
1 parent bd4dd74881
commit 42dc4d6fcd
29 files changed
+750 -645

No files matched your search

+8 -5
View File
@@ -13,6 +13,7 @@
#define RSE_MESH_CONTROLLER_H
#include "vulkan_commons.h"
#include "utilities/rse_commons.h"
/**
* @brief Create a new mesh for provided vertices and indices.
@@ -33,7 +34,7 @@ uint16_t create_mesh(struct rse_vertex_t* vertices,
* @param mesh_id Mesh id
* @param instance_data Transformation info
*/
void create_mesh_instance(uint16_t mesh_id,
rse_err_t create_mesh_instance(uint16_t mesh_id,
struct rse_instance_data_t instance_data);
/**
@@ -60,10 +61,12 @@ size_t get_indices_count(uint16_t mesh_id);
*/
size_t get_instances_count(uint16_t mesh_id);
/**
* @brief Get vertex offset in vertex buffer for selected mesh
*
* @param mesh_id Mesh identifies
* @return size_t Offset
*/
size_t get_vertex_offset(uint16_t mesh_id);
VkDrawIndexedIndirectCommand get_indices_data_buffer(uint16_t mesh_id);
#endif /* RSE_MESH_CONTROLLER_H */