NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
m3d::anmVis_c Class Reference
Inheritance diagram for m3d::anmVis_c:
[legend]

Description

Definition at line 6 of file anm_vis.hpp.

Public Member Functions

virtual banm_c::anmType_e getType () const
 
bool create (nw4r::g3d::ResMdl mdl, nw4r::g3d::ResAnmVis anmVis, mAllocator_c *allocator, size_t *objSize)
 
void setAnm (m3d::bmdl_c &mdl, nw4r::g3d::ResAnmVis anmVis, m3d::playMode_e playMode)
 
void setFrmCtrlDefault (nw4r::g3d::ResAnmVis &anmVis, m3d::playMode_e playMode)
 
- Public Member Functions inherited from m3d::fanm_c
 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.
 
- Public Member Functions inherited from m3d::banm_c
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::AnmObjgetObj ()
 

Additional Inherited Members

- Public Types inherited from m3d::banm_c
enum  anmType_e {
  TYPE_ANM_CHR ,
  TYPE_ANM_VIS ,
  TYPE_ANM_MAT_CLR ,
  TYPE_ANM_TEX_PAT ,
  TYPE_ANM_TEX_SRT ,
  TYPE_ANM_OTHER
}
 
- Public Attributes inherited from m3d::fanm_c
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.
 
- Protected Attributes inherited from m3d::banm_c
nw4r::g3d::AnmObjmpObj
 
EGG::FrmHeapmpHeap
 
mAllocator_c mAllocator
 

Member Function Documentation

◆ getType()

virtual banm_c::anmType_e m3d::anmVis_c::getType ( void ) const
inlinevirtual

Implements m3d::banm_c.

Definition at line 8 of file anm_vis.hpp.

◆ create()

bool m3d::anmVis_c::create ( nw4r::g3d::ResMdl mdl,
nw4r::g3d::ResAnmVis anmVis,
mAllocator_c * allocator,
size_t * objSize )

Definition at line 3 of file anm_vis.cpp.

◆ setAnm()

void m3d::anmVis_c::setAnm ( m3d::bmdl_c & mdl,
nw4r::g3d::ResAnmVis anmVis,
m3d::playMode_e playMode )

Definition at line 27 of file anm_vis.cpp.

◆ setFrmCtrlDefault()

void m3d::anmVis_c::setFrmCtrlDefault ( nw4r::g3d::ResAnmVis & anmVis,
m3d::playMode_e playMode )

Definition at line 39 of file anm_vis.cpp.