#include <game/mLib/m_3d/fanm.hpp>
Animation object.
Definition at line 7 of file fanm.hpp.
|
| | fanm_c () |
| | Constructs an animation object.
|
| |
| virtual | ~fanm_c () |
| | Destroys the animation object.
|
| |
| virtual void | play () |
| | Updates the animation. Call this function every frame to update the animation.
|
| |
| void | set (float duration, m3d::playMode_e playMode, float updateRate, float startFrame) |
| | Starts the animation with the given parameters.
|
| |
| void | setFrame (float frame) |
| | Jumps to the specified frame in the animation.
|
| |
| bool | isStop () const |
| | Checks whether the animation is stopped.
|
| |
| bool | checkFrame (float frame) const |
| | Checks whether the animation has reached the specified frame.
|
| |
|
virtual anmType_e | getType () const =0 |
| |
| virtual void | remove () |
| |
| bool | createAllocator (mAllocator_c *allocator, size_t *size) |
| |
| bool | IsBound () const |
| |
| float | getFrame () const |
| |
| void | setFrameOnly (float frame) |
| |
| float | getRate () const |
| |
| void | setRate (float rate) |
| |
| nw4r::g3d::AnmObj * | getObj () |
| |
|
| float | mFrameMax |
| | The last frame number of the animation.
|
| |
| float | mFrameStart |
| | The first frame number of the animation.
|
| |
| float | mCurrFrame |
| | The frame the animation is currently on.
|
| |
| u8 | mPlayMode |
| | The play mode of the animation.
|
| |
◆ fanm_c()
Constructs an animation object.
Definition at line 3 of file fanm.cpp.
◆ ~fanm_c()
Destroys the animation object.
Definition at line 9 of file fanm.cpp.
◆ play()
| void m3d::fanm_c::play |
( |
| ) |
|
|
virtual |
Updates the animation. Call this function every frame to update the animation.
Reimplemented from m3d::banm_c.
Definition at line 11 of file fanm.cpp.
◆ set()
| void m3d::fanm_c::set |
( |
float | duration, |
|
|
m3d::playMode_e | playMode, |
|
|
float | updateRate, |
|
|
float | startFrame ) |
Starts the animation with the given parameters.
- Parameters
-
| duration | The number of frames in the animation. |
| playMode | The play mode of the animation. |
| updateRate | The speed of the animation. |
| startFrame | The starting frame of the animation. Set to -1 to start from the beginning. |
Definition at line 51 of file fanm.cpp.
◆ setFrame()
| void m3d::fanm_c::setFrame |
( |
float | frame | ) |
|
Jumps to the specified frame in the animation.
- Parameters
-
| frame | The frame to jump to. |
Definition at line 71 of file fanm.cpp.
◆ isStop()
| bool m3d::fanm_c::isStop |
( |
| ) |
const |
Checks whether the animation is stopped.
Definition at line 76 of file fanm.cpp.
◆ checkFrame()
| bool m3d::fanm_c::checkFrame |
( |
float | frame | ) |
const |
Checks whether the animation has reached the specified frame.
- Parameters
-
Definition at line 90 of file fanm.cpp.
◆ mFrameMax
| float m3d::fanm_c::mFrameMax |
The last frame number of the animation.
Definition at line 37 of file fanm.hpp.
◆ mFrameStart
| float m3d::fanm_c::mFrameStart |
The first frame number of the animation.
Definition at line 38 of file fanm.hpp.
◆ mCurrFrame
| float m3d::fanm_c::mCurrFrame |
The frame the animation is currently on.
Definition at line 39 of file fanm.hpp.
◆ mPlayMode
| u8 m3d::fanm_c::mPlayMode |
The play mode of the animation.
Definition at line 40 of file fanm.hpp.