From d6687be6a89ebd55fa9f3438d742bbf9cf4c9afa Mon Sep 17 00:00:00 2001 From: Aki Date: Fri, 10 Feb 2023 23:47:39 +0100 Subject: Created scaled Clock for consistent access to update times --- engine/include/kurator/engine/Clock.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 engine/include/kurator/engine/Clock.h (limited to 'engine/include') diff --git a/engine/include/kurator/engine/Clock.h b/engine/include/kurator/engine/Clock.h new file mode 100644 index 0000000..4e5e7b1 --- /dev/null +++ b/engine/include/kurator/engine/Clock.h @@ -0,0 +1,20 @@ +#pragma once + + +namespace kurator +{ +namespace engine +{ + + +struct Clock +{ + float time_factor = 1.0f; + float dt() const; + float ui() const; + operator float() const; +}; + + +} // namespace engine +} // namespace kurator -- cgit v1.1