diff options
Diffstat (limited to 'draw/wall.hpp')
-rw-r--r-- | draw/wall.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/draw/wall.hpp b/draw/wall.hpp index ad1eafad..81c6b60e 100644 --- a/draw/wall.hpp +++ b/draw/wall.hpp @@ -1,6 +1,7 @@ #pragma once #include "tile-defs.hpp" +#include "anim.hpp" #include <array> #include <Corrade/Containers/ArrayViewStl.h> #include <Magnum/Math/Vector2.h> @@ -31,13 +32,15 @@ private: using vertex_array = std::array<quad, COUNT>; using texture_array = std::array<GL::Texture2D*, COUNT>; + anim_mesh _anim_mesh; + static void maybe_add_tile(vertex_array& data, texture_array& textures, tile_ref x, std::size_t pos); static void add_wall(vertex_array& data, texture_array& textures, const tile_image_ref& img, std::size_t pos); GL::Mesh _mesh; GL::Buffer _vertex_buffer{vertex_array{}, Magnum::GL::BufferUsage::DynamicDraw}, _index_buffer{make_index_array()}, - _positions_buffer{make_position_array()}; + _positions_buffer{make_position_array()}; static std::array<std::array<UnsignedShort, 6>, COUNT> make_index_array(); static std::array<std::array<Vector3, 4>, COUNT> make_position_array(); }; |