File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ This file is a list of ideas for gf. Some of them will eventually be in gf. Othe
14
14
15
15
## graphics
16
16
17
+ - (event) add AnyScancode, AnyKeycode and AnyGamepadButton
17
18
- (font) use Signed Distance Field for big size fonts
18
19
- (curve/shape) add anti-aliasing to ` Curve ` and ` Shape `
19
20
- ideas: [ vaserenderer] ( https://github.com/tyt2y3/vaserenderer ) ,
Original file line number Diff line number Diff line change @@ -115,6 +115,11 @@ inline namespace v1 {
115
115
*/
116
116
void reset ();
117
117
118
+ /* *
119
+ * @brief Tell if the animation is finished
120
+ */
121
+ bool isFinished () const ;
122
+
118
123
private:
119
124
struct Frame {
120
125
const Texture *texture;
Original file line number Diff line number Diff line change @@ -111,6 +111,10 @@ inline namespace v1 {
111
111
m_currentDurationInFrame = Time::zero ();
112
112
}
113
113
114
+ bool Animation::isFinished () const {
115
+ return !m_loop && m_currentDurationInFrame < Time::zero () && m_currentFrame + 1 >= m_frames.size ();
116
+ }
117
+
114
118
#ifndef DOXYGEN_SHOULD_SKIP_THIS
115
119
}
116
120
#endif
You can’t perform that action at this time.
0 commit comments