Remove RAM stored mesh data

Remove RAM stored vertices and indices data. It is now stored only in
GPU memory.
This commit is contained in:
Piotr Krygier committed 2023-09-26 14:15:21 +02:00
1 parent 0ef475e57e
commit 940bc7e512
7 files changed
+39 -112

No files matched your search

+2 -28
View File
@@ -22,12 +22,9 @@
struct rse_mesh_t
{
uint32_t unique_id;
size_t instances_count;
size_t indices_count;
size_t vertices_count;
struct rse_vertex_t* vertices;
uint16_t* indices;
struct rse_instance_data_t* instances;
size_t indices_count;
size_t instances_count;
};
/**
@@ -76,29 +73,6 @@ size_t get_indices_count(uint16_t mesh_id);
*/
size_t get_instances_count(uint16_t mesh_id);
/**
* @brief Get pointer to vertices of mesh
*
* @param mesh_id Mesh identifier
* @return struct rse_vertex_t* Vertex data
*/
struct rse_vertex_t* get_mesh_vertices(uint16_t mesh_id);
/**
* @brief Get pointer to indices of mesh
*
* @param mesh_id Mesh identifier
* @return uint16_t* Indices data
*/
uint16_t* get_mesh_indices(uint16_t mesh_id);
/**
* @brief Get the instance data for mesh object.
*
* @param mesh_id Mesh identifier
* @return struct rse_instance_data_t* Pointer to instances array
*/
struct rse_instance_data_t* get_instance_data_for_mesh(uint16_t mesh_id);
#endif /* RSE_MESH_CONTROLLER_H */