载入中...
搜索中...
未找到
Tween.h
浏览该文件的文档.
Animation module — tween factory + 2D sprite-sheet / Spine + 3D skeletal playback (player / state mac...
Definition Animation.h:53
Property tween — interpolates named float properties from → to over time.
Definition Tween.h:21
void setFrom(const std::string &name, float value)
Definition Tween.cpp:34
void setDeltaAngle(const std::string &name, float deltaRadians)
Definition Tween.cpp:74
void setToAngle(const std::string &name, float radians)
Definition Tween.cpp:66
int getPropertyCount() const
Names of all property tracks (stable order = insertion order).
Definition Tween.h:92
bool update(float dt)
Advance by dt seconds. Returns true while the tween is still active (delayed / running / paused).
Definition Tween.cpp:259
void setFromAngle(const std::string &name, float radians)
Definition Tween.cpp:58
std::string getPropertyName(int index) const
Definition Tween.cpp:306
float evaluate(const std::string &name, float t) const
Sample property at linear t in [0,1] using current from/to (no state change).
Definition Tween.cpp:293
void setRepeat(int count)
Play count: 1 = once (default), N = N cycles, -1 = infinite. Values < -1 are clamped to -1.
Definition Tween.cpp:126
void setDelta(const std::string &name, float delta)
Relative change: end = start + delta (resolved when start() runs).
Definition Tween.cpp:50
Tween(const Tween &)=delete
float getDelta(const std::string &name) const
Definition Tween.cpp:103
Tween & operator=(const Tween &)=delete
Definition Animation.cpp:29
@ Running