mirror of
https://github.com/zeldaret/ss
synced 2026-08-09 10:53:09 -04:00
More cursor
This commit is contained in:
@@ -97,21 +97,11 @@ public:
|
||||
mFlags = mFlags | FLAG_BACKWARDS;
|
||||
}
|
||||
|
||||
inline void setRatio(f32 ratio) {
|
||||
f32 actualEnd = mEndFrame - 1.0f;
|
||||
setFrame(actualEnd * ratio);
|
||||
}
|
||||
|
||||
inline f32 getRatio() const {
|
||||
f32 actualEnd = mEndFrame - 1.0f;
|
||||
return mCurrFrame / actualEnd;
|
||||
}
|
||||
|
||||
inline void setBackwardsRatio(f32 ratio) {
|
||||
f32 actualEnd = mEndFrame - 1.0f;
|
||||
setFrame(actualEnd - (ratio * actualEnd));
|
||||
}
|
||||
|
||||
inline f32 getNextFrame() const {
|
||||
f32 end = mEndFrame;
|
||||
f32 f = mCurrFrame + 1.0f;
|
||||
|
||||
Reference in New Issue
Block a user