diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-08-27 14:46:52 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-08-27 15:04:01 +0200 |
commit | 7d333c4077491ed7128a79598d04a01a05ed367d (patch) | |
tree | d1040d1d90d9f8e5c7351c5b0ed725cecbad8b03 /src/tile-atlas.hpp | |
parent | d6556c2fa3a3a2880e27afb788e87d49e6c1ecb9 (diff) |
loader: call setLabel() on tile_atlas with full path
Diffstat (limited to 'src/tile-atlas.hpp')
-rw-r--r-- | src/tile-atlas.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tile-atlas.hpp b/src/tile-atlas.hpp index 4ea2c67d..de48f1bb 100644 --- a/src/tile-atlas.hpp +++ b/src/tile-atlas.hpp @@ -15,7 +15,7 @@ struct tile_atlas final using quad = std::array<Vector3, 4>; using texcoords = std::array<Vector2, 4>; - tile_atlas(StringView name, const ImageView2D& img, Vector2ub tile_count, Optional<enum pass_mode> pass_mode); + tile_atlas(StringView path, StringView name, const ImageView2D& img, Vector2ub tile_count, Optional<enum pass_mode> pass_mode); texcoords texcoords_for_id(size_t id) const; static constexpr quad floor_quad(Vector3 center, Vector2 size); @@ -37,7 +37,7 @@ private: std::unique_ptr<const texcoords[]> texcoords_; GL::Texture2D tex_; - String name_; + String path_, name_; Vector2ui size_; Vector2ub dims_; Optional<enum pass_mode> passability; |