From b3e0051822039ded46eacefb3d696a8f9ebcb954 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 5 Mar 2024 14:27:29 +0100 Subject: rename allocate_frame_time -> alloc_frame_time --- src/object.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/object.cpp') 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 requires std::is_unsigned_v -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::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_) { -- cgit v1.2.3