rubbish
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user