From ff3a18b1a251a5e85057e52303efa0cdd79e8a66 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 9 Nov 2022 11:45:34 +0100 Subject: add floor mesh to struct chunk --- draw/floor.hpp | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'draw/floor.hpp') diff --git a/draw/floor.hpp b/draw/floor.hpp index 651cee61..07e183d6 100644 --- a/draw/floor.hpp +++ b/draw/floor.hpp @@ -21,19 +21,6 @@ struct floor_mesh final floor_mesh(const floor_mesh&) = delete; void draw(tile_shader& shader, chunk& c); - -private: - struct vertex_data final { Vector2 texcoords; }; - using quad_data = std::array; - - static std::array, TILE_COUNT> make_index_array(); - static std::array, TILE_COUNT> make_position_array(); - - GL::Mesh _mesh; - GL::Buffer _vertex_buffer{std::array{}, Magnum::GL::BufferUsage::DynamicDraw}, - _index_buffer{make_index_array()}, _positions_buffer{make_position_array()}; - - static void set_tile(quad_data& data, tile_ref& x); }; } // namespace floormat -- cgit v1.2.3