diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2022-09-06 22:41:00 +0200 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2022-09-06 22:41:00 +0200 |
| commit | b0708f165601fad16aa59715dbe32796a6e7081e (patch) | |
| tree | 7741e0fd5e180905618d27ac4003c74633b96a13 /src/mesh.cpp | |
| parent | 24b02adbf6189025c00d62417fb4b49346f22c98 (diff) | |
Setup for texture upload system
Diffstat (limited to 'src/mesh.cpp')
| -rw-r--r-- | src/mesh.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<Mesh> 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 } ); |
