LeviLamina
Loading...
Searching...
No Matches
CameraFadeAnimation.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
6public:
7 // CameraFadeAnimation inner types declare
8 // clang-format off
9 struct Keyframe;
10 // clang-format on
11
12 // CameraFadeAnimation inner types define
13 struct Keyframe {
14 public:
15 // member variables
16 // NOLINTBEGIN
17 ::ll::TypedStorage<4, 4, float> mTime;
18 ::ll::TypedStorage<4, 4, float> mValue;
19 // NOLINTEND
20 };
21
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 24, ::std::vector<::CameraFadeAnimation::Keyframe>> mKeyframes;
26 ::ll::TypedStorage<4, 4, float> mCurrentValue;
27 ::ll::TypedStorage<4, 4, float> mElapsedTime;
28 // NOLINTEND
29
30public:
31 // member functions
32 // NOLINTBEGIN
33#ifdef LL_PLAT_C
34 MCAPI void _addKeyframe(float time, float value);
35
36 MCAPI void addFade(float inTime, float requestedHoldTime, float outTime, float targetAlpha);
37
38 MCAPI void advanceTime(float deltaTime);
39
40 MCFOLD float getCurrentValue() const;
41
42 MCFOLD bool isActive() const;
43
44 MCAPI void reset();
45#endif
46 // NOLINTEND
47};
Definition CameraFadeAnimation.h:5
Definition CameraFadeAnimation.h:13