summary refs log tree commit diff
path: root/src/GFX/Binder.hpp
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2023-06-30 15:15:00 +0200
committerMel <einebeere@gmail.com>2023-06-30 15:15:00 +0200
commit424d00eaf7335e1c6427f40260d55782c3fd902c (patch)
tree62550b085078d84c8a48cbb01f4f7738bfeeb3da /src/GFX/Binder.hpp
parent6d61b17c4289185d59d37caae8070a40e91fba40 (diff)
downloadmeowcraft-424d00eaf7335e1c6427f40260d55782c3fd902c.tar.zst
meowcraft-424d00eaf7335e1c6427f40260d55782c3fd902c.zip
Avoid per-frame chunk copies and don't render block faces between chunks
Diffstat (limited to 'src/GFX/Binder.hpp')
-rw-r--r--src/GFX/Binder.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/GFX/Binder.hpp b/src/GFX/Binder.hpp
index d8a2be9..92faebe 100644
--- a/src/GFX/Binder.hpp
+++ b/src/GFX/Binder.hpp
@@ -35,14 +35,14 @@ class Binder {
 public:
     Binder() = default;;
 
-    static BindableMesh load(Mesh mesh);
+    static BindableMesh load(const Mesh& mesh);
 
 private:
     static uint32_t create_vao();
     static void unbind_vao();
 
-    static void store_in_attribute_list(uint32_t attribute, int attribute_size, int type_size, void* data, long data_size);
-    static void store_indices(uint32_t* indices, size_t indices_size);
+    static void store_in_attribute_list(uint32_t attribute, int attribute_size, int type_size, const void* data, long data_size);
+    static void store_indices(const uint32_t* indices, size_t indices_size);
 };
 
 }
\ No newline at end of file