summary refs log tree commit diff
path: root/src/Binder.hpp
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2022-10-21 01:03:18 +0200
committerMel <einebeere@gmail.com>2022-10-21 01:03:18 +0200
commit6ed978051668c08f5a957c97570f364dd580c807 (patch)
treee3db93c52fcd86e26bc859d46e755290d2a7f40c /src/Binder.hpp
parent0464a83dfaebaa75d6e2d3b7431e84ebd83fccfd (diff)
downloadmeowcraft-6ed978051668c08f5a957c97570f364dd580c807.tar.zst
meowcraft-6ed978051668c08f5a957c97570f364dd580c807.zip
Namespace and Folder refactor
Diffstat (limited to 'src/Binder.hpp')
-rw-r--r--src/Binder.hpp38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/Binder.hpp b/src/Binder.hpp
deleted file mode 100644
index 9108a65..0000000
--- a/src/Binder.hpp
+++ /dev/null
@@ -1,38 +0,0 @@
-#pragma once
-
-#include <cstdint>
-#include "Mesh.hpp"
-
-namespace MC {
-
-class BindableMesh {
-public:
-    void bind() const;
-    void unbind();
-
-    size_t size() const;
-
-private:
-    BindableMesh(uint32_t vao, size_t vertex_count) : m_vao(vao), m_vertex_count(vertex_count) {};
-
-    uint32_t m_vao;
-    size_t m_vertex_count;
-
-    friend class Binder;
-};
-
-class Binder {
-public:
-    Binder() = default;;
-
-    static BindableMesh load(Mesh& mesh);
-
-private:
-    static uint32_t create_vao();
-    static uint32_t unbind_vao();
-
-    static void store_in_attribute_list(uint32_t attribute, size_t size, float* data, size_t data_size);
-    static void store_indices(uint32_t* indices, size_t indices_size);
-};
-
-}
\ No newline at end of file