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/Binder.hpp | |
| 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/Binder.hpp')
| -rw-r--r-- | src/GFX/Binder.hpp | 6 |
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 |
