Skip to content

Commit 74fe1f3

Browse files
committed
curve: Make Keyframe's 'value' member public.
1 parent 1092ba5 commit 74fe1f3

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

libopenage/curve/keyframe.h

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,37 @@ class Keyframe {
3636
timestamp{time},
3737
value{value} {}
3838

39+
/**
40+
* Get the time of this keyframe.
41+
*
42+
* @return Keyframe time.
43+
*/
3944
const time::time_t &time() const {
4045
return this->timestamp;
4146
}
4247

48+
/**
49+
* Get the value of this keyframe.
50+
*
51+
* @return Keyframe value.
52+
*/
4353
const T &val() const {
4454
return this->value;
4555
}
4656

57+
public:
58+
/**
59+
* Value of the keyframe.
60+
*
61+
* Can be modified by the curve if necessary.
62+
*/
63+
T value = T{};
64+
4765
private:
66+
/**
67+
* Time of the keyframe.
68+
*/
4869
time::time_t timestamp = time::TIME_MIN;
49-
50-
T value = T{};
5170
};
5271

5372
} // namespace openage::curve

0 commit comments

Comments
 (0)