From 424d00eaf7335e1c6427f40260d55782c3fd902c Mon Sep 17 00:00:00 2001 From: Mel Date: Fri, 30 Jun 2023 15:15:00 +0200 Subject: Avoid per-frame chunk copies and don't render block faces between chunks --- src/GFX/Mesh.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/GFX/Mesh.hpp') diff --git a/src/GFX/Mesh.hpp b/src/GFX/Mesh.hpp index bfe8eab..1d14ba2 100644 --- a/src/GFX/Mesh.hpp +++ b/src/GFX/Mesh.hpp @@ -49,8 +49,8 @@ public: ) : m_attributes(std::move(attributes)), m_indices() {}; - std::vector indices(); - std::vector attributes(); + const std::vector& indices() const; + const std::vector& attributes() const; private: std::vector m_attributes; -- cgit 1.4.1