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

Description

Definition at line 123 of file g3d_anmvis.h.

Public Member Functions

 AnmObjVisRes (MEMAllocator *pAllocator, ResAnmVis vis, u16 *pBindingBuf, int numBinding)
 
virtual void SetFrame (f32 frame)
 
virtual f32 GetFrame () const
 
virtual void UpdateFrame ()
 
virtual void SetUpdateRate (f32 rate)
 
virtual f32 GetUpdateRate () const
 
virtual bool Bind (const ResMdl mdl)
 
virtual bool GetResult (ulong idx)
 
ResAnmVis GetResAnm ()
 
void SetPlayPolicy (PlayPolicyFunc pFunc)
 
- Public Member Functions inherited from nw4r::g3d::AnmObjVis
 AnmObjVis (MEMAllocator *pAllocator, u16 *pBindingBuf, int numBinding)
 
virtual void G3dProc (ulong task, ulong param, void *pInfo)
 
virtual void Release ()
 
virtual AnmObjVisResAttach (int idx, AnmObjVisRes *pRes)
 
virtual AnmObjVisResDetach (int idx)
 
void DetachAll ()
 
bool TestExistence (ulong idx) const
 
bool TestDefined (ulong idx) const
 
- Public Member Functions inherited from nw4r::g3d::AnmObj
 AnmObj (MEMAllocator *pAllocator, G3dObj *pParent)
 
void SetAnmFlag (AnmFlag flag, bool value)
 
bool TestAnmFlag (AnmFlag flag) const
 
bool IsBound () const
 
- Public Member Functions inherited from nw4r::g3d::G3dObj
virtual bool IsDerivedFrom (TypeObj other) const
 
virtual const TypeObj GetTypeObj () const
 
virtual const char * GetTypeName () const
 
 G3dObj (MEMAllocator *pAllocator, G3dObj *pParent)
 
G3dObjGetParent () const
 
void SetParent (G3dObj *pParent)
 
void DetachFromParent ()
 
void Destroy ()
 

Static Public Member Functions

static AnmObjVisResConstruct (MEMAllocator *pAllocator, size_t *pSize, ResAnmVis vis, ResMdl mdl)
 
- Static Public Member Functions inherited from nw4r::g3d::G3dObj
static const G3dObj::TypeObj GetTypeObjStatic ()
 
static void * Alloc (MEMAllocator *pAllocator, ulong size)
 
static void Dealloc (MEMAllocator *pAllocator, void *pBlock)
 
static void * operator new (size_t, void *pBlock)
 
static void operator delete (void *)
 
template<typename TTo>
static TTo * DynamicCast (G3dObj *pObj)
 

Private Member Functions

 NW4R_G3D_RTTI_DECL_DERIVED (AnmObjVisRes, AnmObjVis)
 

Private Attributes

ResAnmVis mRes
 

Additional Inherited Members

- Public Types inherited from nw4r::g3d::AnmObj
enum  AnmFlag {
  FLAG_NEED_UPDATE = (1 << 0) ,
  FLAG_CACHE_OBSOLETE = (1 << 1) ,
  FLAG_ANM_BOUND = (1 << 2) ,
  FLAG_USE_QUATERNION_ROTATION_BLEND = (1 << 3) ,
  FLAG_USE_ACCURATE_SCALE_BLEND = (1 << 4)
}
 
- Public Types inherited from nw4r::g3d::G3dObj
enum  G3dProcTask {
  G3DPROC_NONE = 0x00000 ,
  G3DPROC_CALC_WORLD = 0x00001 ,
  G3DPROC_CALC_MAT = 0x00002 ,
  G3DPROC_CALC_VTX = 0x00003 ,
  G3DPROC_CALC_VIEW = 0x00004 ,
  G3DPROC_GATHER_SCNOBJ = 0x00005 ,
  G3DPROC_DRAW_OPA = 0x00006 ,
  G3DPROC_DRAW_XLU = 0x00007 ,
  G3DPROC_UPDATEFRAME = 0x00008 ,
  __G3DPROC_OPTIONAL_END ,
  G3DPROC_CHILD_DETACHED = 0x10001 ,
  G3DPROC_ATTACH_PARENT = 0x10002 ,
  G3DPROC_DETACH_PARENT = 0x10003 ,
  G3DPROC_ZSORT = 0x10004
}
 
- Protected Types inherited from nw4r::g3d::AnmObjVis
enum  BindingFlag {
  BINDING_ID_MASK = (1 << 14) - 1 ,
  BINDING_INVALID = (1 << 14) ,
  BINDING_UNDEFINED = (1 << 15)
}
 
- Protected Member Functions inherited from nw4r::g3d::AnmObjVis
 NW4R_G3D_RTTI_DECL_DERIVED (AnmObjVis, AnmObj)
 
- Protected Member Functions inherited from nw4r::g3d::FrameCtrl
 FrameCtrl (f32 start, f32 end, PlayPolicyFunc pPolicy)
 
f32 GetFrm () const
 
void SetFrm (f32 frame)
 
void UpdateFrm ()
 
f32 GetRate () const
 
void SetRate (f32 rate)
 
void SetPlayPolicy (PlayPolicyFunc func)
 
- Protected Attributes inherited from nw4r::g3d::AnmObjVis
int mNumBinding
 
u16 *const mpBinding
 
- Static Protected Attributes inherited from nw4r::g3d::AnmObjVis
static const int MAX_CHILD = 4
 

Constructor & Destructor Documentation

◆ ~AnmObjVisRes()

virtual nw4r::g3d::AnmObjVisRes::~AnmObjVisRes ( )
inlinevirtual

Definition at line 130 of file g3d_anmvis.h.

Member Function Documentation

◆ SetFrame()

virtual void nw4r::g3d::AnmObjVisRes::SetFrame ( f32 frame)
virtual

Implements nw4r::g3d::AnmObjVis.

◆ GetFrame()

virtual f32 nw4r::g3d::AnmObjVisRes::GetFrame ( ) const
virtual

Implements nw4r::g3d::AnmObjVis.

◆ UpdateFrame()

virtual void nw4r::g3d::AnmObjVisRes::UpdateFrame ( )
virtual

Implements nw4r::g3d::AnmObjVis.

◆ SetUpdateRate()

virtual void nw4r::g3d::AnmObjVisRes::SetUpdateRate ( f32 rate)
virtual

Implements nw4r::g3d::AnmObjVis.

◆ GetUpdateRate()

virtual f32 nw4r::g3d::AnmObjVisRes::GetUpdateRate ( ) const
virtual

Implements nw4r::g3d::AnmObjVis.

◆ Bind()

virtual bool nw4r::g3d::AnmObjVisRes::Bind ( const ResMdl mdl)
virtual

Implements nw4r::g3d::AnmObjVis.

◆ GetResult()

virtual bool nw4r::g3d::AnmObjVisRes::GetResult ( ulong idx)
virtual

Implements nw4r::g3d::AnmObjVis.

◆ GetResAnm()

ResAnmVis nw4r::g3d::AnmObjVisRes::GetResAnm ( )
inline

Definition at line 143 of file g3d_anmvis.h.

◆ SetPlayPolicy()

void nw4r::g3d::AnmObjVisRes::SetPlayPolicy ( PlayPolicyFunc pFunc)
inline

Definition at line 147 of file g3d_anmvis.h.

Member Data Documentation

◆ mRes

ResAnmVis nw4r::g3d::AnmObjVisRes::mRes
private

Definition at line 152 of file g3d_anmvis.h.