We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1092ba5 commit 74fe1f3Copy full SHA for 74fe1f3
libopenage/curve/keyframe.h
@@ -36,18 +36,37 @@ class Keyframe {
36
timestamp{time},
37
value{value} {}
38
39
+ /**
40
+ * Get the time of this keyframe.
41
+ *
42
+ * @return Keyframe time.
43
+ */
44
const time::time_t &time() const {
45
return this->timestamp;
46
}
47
48
49
+ * Get the value of this keyframe.
50
51
+ * @return Keyframe value.
52
53
const T &val() const {
54
return this->value;
55
56
57
+public:
58
59
+ * Value of the keyframe.
60
61
+ * Can be modified by the curve if necessary.
62
63
+ T value = T{};
64
+
65
private:
66
67
+ * Time of the keyframe.
68
69
time::time_t timestamp = time::TIME_MIN;
-
- T value = T{};
70
};
71
72
} // namespace openage::curve
0 commit comments