|
Oxygine
1
2g game engine
|
#include <TweenAnim.h>
Public Types | |
| typedef Sprite | type |
Public Member Functions | |
| TweenAnim (const ResAnim *resAnim, int row=0) | |
| TweenAnim (const ResAnim *resAnim, int startFrame, int endFrame) | |
| void | init (Sprite &actor) |
| void | done (Sprite &actor) |
| const ResAnim * | getResAnim () const |
| int | getRow () const |
| int | getStart () const |
| int | getEnd () const |
| void | setResAnim (const ResAnim *resAnim) |
| void | setInterval (int start, int end) |
| void | update (Sprite &actor, float p, const UpdateState &us) |
Protected Member Functions | |
| virtual void | _setAnimFrame (Sprite &, const AnimationFrame &) |
Protected Attributes | |
| const ResAnim * | _resAnim |
| int | _row |
| int | _start |
| int | _end |
A TweenAnim class use for playing per frame animation
| oxygine::TweenAnim::TweenAnim | ( | const ResAnim * | resAnim, |
| int | row = 0 |
||
| ) |
Row/Column mode. Plays single row. if resanim == 0 will be used current
| oxygine::TweenAnim::TweenAnim | ( | const ResAnim * | resAnim, |
| int | startFrame, | ||
| int | endFrame | ||
| ) |
Frames mode. Play animation in interval [start, end]
| void oxygine::TweenAnim::setInterval | ( | int | start, |
| int | end | ||
| ) |
Play animation in interval [start, end]
1.8.14