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