diff options
| author | Mel <einebeere@gmail.com> | 2022-10-10 16:23:26 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2022-10-10 16:23:26 +0200 |
| commit | cb3ddae385c03a8830d39dc37fcd5bf273524d5e (patch) | |
| tree | 0ccddcd6b32838b8fc2b65805a4fba96c4c0ff39 /src/Mesh.hpp | |
| parent | 799c06e0387e01bdb8a10019be6192f9db00a824 (diff) | |
| download | meowcraft-cb3ddae385c03a8830d39dc37fcd5bf273524d5e.tar.zst meowcraft-cb3ddae385c03a8830d39dc37fcd5bf273524d5e.zip | |
Try to add second VBO
Diffstat (limited to 'src/Mesh.hpp')
| -rw-r--r-- | src/Mesh.hpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Mesh.hpp b/src/Mesh.hpp index a9dadb7..50fc629 100644 --- a/src/Mesh.hpp +++ b/src/Mesh.hpp @@ -9,8 +9,8 @@ namespace MC { class Mesh { public: - Mesh(std::vector<Vector<3>> positions, std::vector<uint32_t> indices) - : m_positions(std::move(positions)), m_indices(std::move(indices)) {}; + Mesh(std::vector<Vector<3>> positions, std::vector<Vector<2>> tex_coords, std::vector<uint32_t> indices) + : m_positions(std::move(positions)), m_tex_coords(std::move(tex_coords)), m_indices(std::move(indices)) {}; float* raw(); size_t size(); @@ -18,8 +18,12 @@ public: uint32_t* raw_indices(); size_t indices_size(); + float* raw_tex_coords(); + size_t tex_coords_size(); + private: std::vector<Vector<3>> m_positions; + std::vector<Vector<2>> m_tex_coords; std::vector<uint32_t> m_indices; }; |
