summaryrefslogtreecommitdiffhomepage
path: root/src/scenery.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-02-26 19:16:25 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-02-26 19:16:25 +0100
commit90d388665cfdb048a71fcadf0e142bb679f160ef (patch)
treeef5c8a5c01619a244cf6ebccfe806ae2a5c45baa /src/scenery.hpp
parente8dc8c27155afade10310c84678959f2d7456641 (diff)
bbox rotation work
Diffstat (limited to 'src/scenery.hpp')
-rw-r--r--src/scenery.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/scenery.hpp b/src/scenery.hpp
index 962e53c5..3e950e90 100644
--- a/src/scenery.hpp
+++ b/src/scenery.hpp
@@ -59,6 +59,10 @@ struct scenery final
bool can_activate(const anim_atlas& anim) const noexcept;
bool activate(const anim_atlas& atlas);
void update(float dt, const anim_atlas& anim);
+ void rotate(rotation r);
+
+ static Vector2b rotate_bbox_offset(Vector2b offset, rotation old_r, rotation r);
+ static Vector2ub rotate_bbox_size(Vector2ub size, rotation old_r, rotation r);
};
constexpr scenery::scenery() noexcept : scenery{scenery::none_tag_t{}} {}