From cb3ddae385c03a8830d39dc37fcd5bf273524d5e Mon Sep 17 00:00:00 2001 From: Mel Date: Mon, 10 Oct 2022 16:23:26 +0200 Subject: Try to add second VBO --- src/Mesh.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/Mesh.hpp') 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> positions, std::vector indices) - : m_positions(std::move(positions)), m_indices(std::move(indices)) {}; + Mesh(std::vector> positions, std::vector> tex_coords, std::vector 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> m_positions; + std::vector> m_tex_coords; std::vector m_indices; }; -- cgit 1.4.1