LeviLamina
Loading...
Searching...
No Matches
Clock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5namespace mce {
6
7class Clock {
8public:
9 // member variables
10 // NOLINTBEGIN
17 // NOLINTEND
18
19#ifdef LL_PLAT_S
20public:
21 // prevent constructor by default
22 Clock& operator=(Clock const&);
23 Clock(Clock const&);
24 Clock();
25
26#else // LL_PLAT_C
27public:
28 // prevent constructor by default
29 Clock& operator=(Clock const&);
30 Clock(Clock const&);
31
32#endif
33public:
34 // member functions
35 // NOLINTBEGIN
36#ifdef LL_PLAT_C
37 MCNAPI Clock();
38
39 MCNAPI float accumulatedTime() const;
40
41 MCNAPI float currentTime() const;
42
43 MCNAPI float lastDeltaTime() const;
44
45 MCNAPI void pause();
46
47 MCNAPI void resume();
48
49 MCNAPI void update(float deltaTime, float currentTime);
50#endif
51 // NOLINTEND
52
53public:
54 // constructor thunks
55 // NOLINTBEGIN
56#ifdef LL_PLAT_C
57 MCNAPI void* $ctor();
58#endif
59 // NOLINTEND
60};
61
62} // namespace mce
Definition Alias.h:14