From b0708f165601fad16aa59715dbe32796a6e7081e Mon Sep 17 00:00:00 2001 From: ladevieq Date: Tue, 6 Sep 2022 22:41:00 +0200 Subject: Setup for texture upload system --- src/mesh.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mesh.cpp') diff --git a/src/mesh.cpp b/src/mesh.cpp index 191aaf7..b3916aa 100644 --- a/src/mesh.cpp +++ b/src/mesh.cpp @@ -2,13 +2,13 @@ static std::vector meshes {}; -void Mesh::add_submesh(const submesh& submesh) { +void Mesh::add_submesh(const submesh& submesh, material& material) { submeshes.emplace_back( submesh_info { (uint32_t)vertex_count, (uint32_t)index_count, submesh.index_count / 3, - 0 + material } ); -- cgit v1.3