diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-12-11 02:19:12 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-12-11 02:19:12 +0100 |
commit | eaa6c76bd92e292ac59dcfa0a7aa70cd1e2f50fb (patch) | |
tree | 5110a6fe2fb70e7fbd66db70a37287c00ccf4fda /src/tile-atlas.hpp | |
parent | 067a3f3ae0c1ab94ace005897673a484e165b31b (diff) |
w
Diffstat (limited to 'src/tile-atlas.hpp')
-rw-r--r-- | src/tile-atlas.hpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/tile-atlas.hpp b/src/tile-atlas.hpp index 1a06db4a..347da166 100644 --- a/src/tile-atlas.hpp +++ b/src/tile-atlas.hpp @@ -24,11 +24,10 @@ class tile_atlas final String path_, name_; Vector2ui size_; Vector2ub dims_; - Optional<enum pass_mode> passability; + enum pass_mode passability; public: - // todo remove Optional when wall atlases are fully implemented -sh 20231122 - tile_atlas(StringView path, 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, enum pass_mode pass_mode); texcoords texcoords_for_id(size_t id) const; @@ -37,9 +36,7 @@ public: Vector2ub num_tiles2() const { return dims_; } GL::Texture2D& texture() { return tex_; } StringView name() const { return name_; } - Optional<enum pass_mode> pass_mode() const; // todo remove later - enum pass_mode pass_mode(enum pass_mode p) const; - void set_pass_mode(enum pass_mode p); // todo remove later + enum pass_mode pass_mode() const; }; |