diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-11-22 04:29:40 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-11-22 04:30:34 +0100 |
commit | b7006b670843f692bc14aa9932bffd44f6a629f7 (patch) | |
tree | ab694d3aca7fcf790424f6d635be3006e63e7fc4 | |
parent | c81a7821034eba4bb7cdc1d68bade212b1aaff4d (diff) |
add todo
-rw-r--r-- | loader/loader.hpp | 1 | ||||
-rw-r--r-- | src/tile-atlas.hpp | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/loader/loader.hpp b/loader/loader.hpp index 19d93021..181688fc 100644 --- a/loader/loader.hpp +++ b/loader/loader.hpp @@ -26,6 +26,7 @@ struct loader_ { virtual StringView shader(StringView filename) noexcept = 0; virtual Trade::ImageData2D texture(StringView prefix, StringView filename) noexcept(false) = 0; + // todo remove Optional when wall_atlas is fully implemented -sh 20231122 virtual std::shared_ptr<struct tile_atlas> tile_atlas(StringView filename, Vector2ub size, Optional<pass_mode> pass) noexcept(false) = 0; virtual std::shared_ptr<struct tile_atlas> tile_atlas(StringView filename) noexcept(false) = 0; virtual ArrayView<const String> anim_atlas_list() = 0; diff --git a/src/tile-atlas.hpp b/src/tile-atlas.hpp index 205da68f..45251c6d 100644 --- a/src/tile-atlas.hpp +++ b/src/tile-atlas.hpp @@ -15,6 +15,7 @@ struct tile_atlas final using quad = std::array<Vector3, 4>; using texcoords = std::array<Vector2, 4>; + // 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); texcoords texcoords_for_id(size_t id) const; @@ -24,9 +25,9 @@ struct tile_atlas final Vector2ub num_tiles2() const { return dims_; } GL::Texture2D& texture() { return tex_; } StringView name() const { return name_; } - Optional<enum pass_mode> pass_mode() const; + 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); + void set_pass_mode(enum pass_mode p); // todo remove later private: static std::unique_ptr<const texcoords[]> make_texcoords_array(Vector2ui pixel_size, Vector2ub tile_count); |