summaryrefslogtreecommitdiffhomepage
path: root/src/tile-atlas.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-11-21 18:45:43 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-11-21 18:48:18 +0100
commitf2b3972156c41062c1dfa21a1dbe940c092e6ca8 (patch)
treed652c23326d6668b034c10290bac69721bb0e5a8 /src/tile-atlas.hpp
parent882704691f06451b089af15a83dfec42f00b1b90 (diff)
add texcoords helper function
Diffstat (limited to 'src/tile-atlas.hpp')
-rw-r--r--src/tile-atlas.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tile-atlas.hpp b/src/tile-atlas.hpp
index edb18764..26d3fc17 100644
--- a/src/tile-atlas.hpp
+++ b/src/tile-atlas.hpp
@@ -17,6 +17,7 @@ struct tile_atlas final
tile_atlas(StringView path, StringView name, const ImageView2D& img, Vector2ub tile_count, Optional<enum pass_mode> pass_mode);
+ static texcoords texcoords_at(Vector2ui pos, Vector2ui size, Vector2ui image_size);
texcoords texcoords_for_id(size_t id) const;
static constexpr quad floor_quad(Vector3 center, Vector2 size);
static constexpr quad wall_quad_N(Vector3 center, Vector3 size);