This commit is contained in:
ZY4N
2025-03-25 15:57:32 +01:00
parent a78be71e34
commit 70893c083b
24 changed files with 78 additions and 64 deletions

View File

@@ -5,9 +5,9 @@
#include "opengl/vertex_buffer_utils.hpp"
void zgl::mesh_vertex_buffer_manager::process(store_type& store)
void zgl::mesh_vertex_buffer_manager::process(const assets::data_stores& stores)
{
for (const auto& [ id, mesh ] : store)
for (const auto& [ id, mesh ] : stores.meshes)
{
if (not m_resource_manager.has_resource(id))
{
@@ -62,9 +62,9 @@ void zgl::mesh_vertex_buffer_manager::process(store_type& store)
continue;
}
const auto meta = mesh_vertex_buffer_metadata{
auto meta = mesh_vertex_buffer_metadata{
.component_flags = mesh.component_flags,
.material_id = mesh.material_id
.material = stores.materials.find(mesh.material_id)
};
m_resource_manager.add_resource(store_id, buffer_id, meta);