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

Description

Definition at line 19 of file g3d_anmshp.h.

Public Member Functions

 AnmObjShp (MEMAllocator *pAllocator, u16 *pBindingBuf, int numBinding)
 
virtual void G3dProc (ulong task, ulong param, void *pInfo)=0
 
virtual void SetFrame (f32 frame)=0
 
virtual f32 GetFrame () const =0
 
virtual void UpdateFrame ()=0
 
virtual void SetUpdateRate (f32 rate)=0
 
virtual f32 GetUpdateRate () const =0
 
virtual bool Bind (const ResMdl mdl)=0
 
virtual void Release ()
 
virtual const ShpAnmResultGetResult (ShpAnmResult *pResult, ulong idx)=0
 
virtual AnmObjShpResAttach (int idx, AnmObjShpRes *pRes)
 
virtual AnmObjShpResDetach (int idx)
 
virtual void DetachAll ()
 
virtual void SetWeight (int idx, f32 weight)
 
virtual f32 GetWeight (int idx) const
 
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 ()
 

Protected Types

enum  BindingFlag {
  BINDING_ID_MASK = (1 << 14) - 1 ,
  BINDING_INVALID = (1 << 14) ,
  BINDING_UNDEFINED = (1 << 15)
}
 

Protected Member Functions

 NW4R_G3D_RTTI_DECL_DERIVED (AnmObjShp, AnmObj)
 

Protected Attributes

int mNumBinding
 
u16 *const mpBinding
 

Static Protected Attributes

static const int DEFAULT_MAX_CHILDREN = 4
 

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
}
 
- 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)
 

Member Enumeration Documentation

◆ BindingFlag

enum nw4r::g3d::AnmObjShp::BindingFlag
protected

Definition at line 49 of file g3d_anmshp.h.

Constructor & Destructor Documentation

◆ ~AnmObjShp()

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

Definition at line 23 of file g3d_anmshp.h.

Member Function Documentation

◆ G3dProc()

virtual void nw4r::g3d::AnmObjShp::G3dProc ( ulong task,
ulong param,
void * pInfo )
pure virtual

Implements nw4r::g3d::AnmObj.

◆ SetFrame()

virtual void nw4r::g3d::AnmObjShp::SetFrame ( f32 frame)
pure virtual

Implements nw4r::g3d::AnmObj.

◆ GetFrame()

virtual f32 nw4r::g3d::AnmObjShp::GetFrame ( ) const
pure virtual

Implements nw4r::g3d::AnmObj.

◆ UpdateFrame()

virtual void nw4r::g3d::AnmObjShp::UpdateFrame ( )
pure virtual

Implements nw4r::g3d::AnmObj.

◆ SetUpdateRate()

virtual void nw4r::g3d::AnmObjShp::SetUpdateRate ( f32 rate)
pure virtual

Implements nw4r::g3d::AnmObj.

◆ GetUpdateRate()

virtual f32 nw4r::g3d::AnmObjShp::GetUpdateRate ( ) const
pure virtual

Implements nw4r::g3d::AnmObj.

◆ Bind()

virtual bool nw4r::g3d::AnmObjShp::Bind ( const ResMdl mdl)
pure virtual

Implements nw4r::g3d::AnmObj.

◆ Release()

virtual void nw4r::g3d::AnmObjShp::Release ( )
virtual

Reimplemented from nw4r::g3d::AnmObj.

Member Data Documentation

◆ DEFAULT_MAX_CHILDREN

const int nw4r::g3d::AnmObjShp::DEFAULT_MAX_CHILDREN = 4
staticprotected

Definition at line 56 of file g3d_anmshp.h.

◆ mNumBinding

int nw4r::g3d::AnmObjShp::mNumBinding
protected

Definition at line 59 of file g3d_anmshp.h.

◆ mpBinding

u16* const nw4r::g3d::AnmObjShp::mpBinding
protected

Definition at line 60 of file g3d_anmshp.h.