summaryrefslogtreecommitdiffhomepage
path: root/src/object.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-03-05 14:27:29 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-03-05 14:27:29 +0100
commitb3e0051822039ded46eacefb3d696a8f9ebcb954 (patch)
treebf73b6f305bd6ce08d9b532356cf3a64ad271e7d /src/object.cpp
parent13c5225a2ad494fd3ede13a5973bceacde03452a (diff)
rename allocate_frame_time -> alloc_frame_time
Diffstat (limited to 'src/object.cpp')
-rw-r--r--src/object.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/object.cpp b/src/object.cpp
index 93b80b7d..0b54a159 100644
--- a/src/object.cpp
+++ b/src/object.cpp
@@ -289,7 +289,7 @@ bool object::move_to(Magnum::Vector2i delta)
}
template<typename T> requires std::is_unsigned_v<T>
-uint32_t object::allocate_frame_time(Ns dt, T& accum, uint32_t hz, float speed)
+uint32_t object::alloc_frame_time(Ns dt, T& accum, uint32_t hz, float speed)
{
constexpr auto ns_in_sec = Ns((int)1e9);
constexpr auto accum_max = uint64_t{limits<T>::max};
@@ -319,8 +319,8 @@ uint32_t object::allocate_frame_time(Ns dt, T& accum, uint32_t hz, float speed)
return nframes;
}
-template uint32_t object::allocate_frame_time(Ns dt, uint16_t& accum, uint32_t hz, float speed);
-template uint32_t object::allocate_frame_time(Ns dt, uint32_t& accum, uint32_t hz, float speed);
+template uint32_t object::alloc_frame_time(Ns dt, uint16_t& accum, uint32_t hz, float speed);
+template uint32_t object::alloc_frame_time(Ns dt, uint32_t& accum, uint32_t hz, float speed);
void object::set_bbox_(Vector2b offset_, Vector2b bb_offset_, Vector2ub bb_size_, pass_mode pass_)
{