resonance 1.0.1
Loading...
Searching...
No Matches
animhelper.h
Go to the documentation of this file.
1#pragma once
2
3namespace Rnd {
4class Animatable;
5} // namespace Rnd
6
19public:
27
36
48 void Play(float flFrom, float flTo);
49
58 int Update(float flTime);
59
60private:
61 // When the run started. -1 marks the range idle and 0 marks a run not yet started.
62 float mStart; // +0x00
63 float mFrom; // +0x04
64 float mTo; // +0x08
65 Rnd::Animatable *mAnim; // +0x0c
66};
void SetAnim(Rnd::Animatable *pAnim)
Attach the animation and rewind it to frame 0.
int Update(float flTime)
Advance a run in progress.
AnimHelper()
Start idle with no animation.
void Play(float flFrom, float flTo)
Arm a run between two frames.
Mix-in for an object driven by a frame number.
Definition animatable.h:43
The rendering engine.
Definition animhelper.h:3