Copperfield Engine 0.1
C++ Game Engine
Loading...
Searching...
No Matches
time.hpp
1#pragma once
2#include "engine.hpp"
3
5class Time {
6public:
7 Time() = delete;
8 ~Time() = delete;
9
12 static float DeltaTime();
13
14private:
15 friend Engine;
16 static void Update();
17 inline static float s_delta_time_;
18 inline static float s_last_time_;
19}; // namespace Time
Intiliazes the ComponentManager and the ResourceManager and ofers functions to retrieve them.
Definition: engine.hpp:12
Static functions to retrieve time-related information.
Definition: time.hpp:5
static float DeltaTime()
Retrieves the duration of the last frame.