wavelength 1.0.0
Loading...
Searching...
No Matches
viewanimplayer.h
Go to the documentation of this file.
1#pragma once
2
3#include "rnd/rndanimatable.h"
4
13public:
21
29 void SetAnim(RndAnimatable *pAnim);
30
38 void Start(float fNowMs);
39
46 void Stop();
47
56 void Poll(float fNowMs);
57
65 bool IsPlaying();
66
73 void Clear();
74
75private:
76 float mStartMs;
77 float mEndFrame;
78 int mCursorMoving;
79 RndAnimatable *mAnim;
80};
Mix-in for an object driven by a frame.
Definition rndanimatable.h:16
void SetAnim(RndAnimatable *pAnim)
Use an animation, and move it to its first frame.
void Stop()
Stop playing, and stop the cursor sound.
void Poll(float fNowMs)
Move the animation to the current time, stop at its last frame, and loop the cursor sound while a cur...
void Clear()
Stop playing and forget the animation.
ViewAnimPlayer()
Construct a player with no animation.
bool IsPlaying()
Report whether the animation plays.
void Start(float fNowMs)
Start playing the animation from its first frame.