diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-01 16:35:03 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-01 16:35:03 +0100 |
commit | 704e9bd3ac58484a5209e186798076f1cbd432ef (patch) | |
tree | 511479ebd088d5c9524803c6f3fe4641009b58bc /draw/wall.hpp | |
parent | 7ff1f0911e0b0c314d6e639887b705d6fc0d78aa (diff) |
wip
Diffstat (limited to 'draw/wall.hpp')
-rw-r--r-- | draw/wall.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/draw/wall.hpp b/draw/wall.hpp index 06d99842..ad1eafad 100644 --- a/draw/wall.hpp +++ b/draw/wall.hpp @@ -10,10 +10,10 @@ namespace floormat { -struct tile; -struct tile_image; struct tile_shader; struct chunk; +struct tile_ref; +struct tile_image_ref; struct wall_mesh final { @@ -31,8 +31,8 @@ private: using vertex_array = std::array<quad, COUNT>; using texture_array = std::array<GL::Texture2D*, COUNT>; - static void maybe_add_tile(vertex_array& data, texture_array& textures, tile& x, std::size_t pos); - static void add_wall(vertex_array& data, texture_array& textures, tile_image& img, std::size_t pos); + 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}, |