diff options
| author | Mel <einebeere@gmail.com> | 2023-06-30 15:15:00 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2023-06-30 15:15:00 +0200 |
| commit | 424d00eaf7335e1c6427f40260d55782c3fd902c (patch) | |
| tree | 62550b085078d84c8a48cbb01f4f7738bfeeb3da /src/GFX/Mesh.cpp | |
| parent | 6d61b17c4289185d59d37caae8070a40e91fba40 (diff) | |
| download | meowcraft-424d00eaf7335e1c6427f40260d55782c3fd902c.tar.zst meowcraft-424d00eaf7335e1c6427f40260d55782c3fd902c.zip | |
Avoid per-frame chunk copies and don't render block faces between chunks
Diffstat (limited to 'src/GFX/Mesh.cpp')
| -rw-r--r-- | src/GFX/Mesh.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/GFX/Mesh.cpp b/src/GFX/Mesh.cpp index b0271bb..1869622 100644 --- a/src/GFX/Mesh.cpp +++ b/src/GFX/Mesh.cpp @@ -2,11 +2,11 @@ namespace MC::GFX { -std::vector<uint32_t> Mesh::indices() { +const std::vector<uint32_t>& Mesh::indices() const { return m_indices; } -std::vector<Mesh::Attribute> Mesh::attributes() { +const std::vector<Mesh::Attribute>& Mesh::attributes() const { return m_attributes; } |
