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

Description

Definition at line 8 of file scn_proc.hpp.

Public Types

typedef void ScnObjCb(ScnProc *, bool)
 
- Public Types inherited from nw4r::g3d::ScnObj
enum  ScnObjMtxType {
  TYPE_LOCAL ,
  TYPE_UNK ,
  TYPE_VIEW
}
 
enum  OptID {
  OPTID_DISABLE_GATHER_DRAW_SCNOBJ = 1 ,
  OPTID_DISABLE_CALC_WORLD ,
  OPTID_DISABLE_CALC_MAT ,
  OPTID_DISABLE_CALC_VTX ,
  OPTID_DISABLE_CALC_VIEW ,
  OPTID_DISABLE_DRAW_OPA ,
  OPTID_DISABLE_DRAW_XLU ,
  OPTID_DISABLE_UPDATEFRAME ,
  OPTID_ENABLE_CULLING
}
 Operation options for ScnObj. More...
 
enum  Timing {
  CALLBACK_TIMING_A = BIT_FLAG(0) ,
  CALLBACK_TIMING_B = BIT_FLAG(1) ,
  CALLBACK_TIMING_C = BIT_FLAG(2) ,
  CALLBACK_TIMING_ALL = CALLBACK_TIMING_A | CALLBACK_TIMING_B | CALLBACK_TIMING_C
}
 
- Public Types inherited from nw4r::g3d::G3dObj
enum  G3dProcOp {
  G3DPROC_CALC_WORLD = 1 ,
  G3DPROC_CALC_MAT ,
  G3DPROC_CALC_VTX ,
  G3DPROC_CALC_VIEW ,
  G3DPROC_GATHER_SCNOBJ ,
  G3DPROC_DRAW_OPA ,
  G3DPROC_DRAW_XLU ,
  G3DPROC_UPDATEFRAME ,
  G3DPROC_CHILD_DETACHED = 0x00010001 ,
  G3DPROC_ATTACHED ,
  G3DPROC_DETACHED ,
  G3DPROC_SORT
}
 The possible G3D process operations. More...
 
enum  G3dProcParam {
  G3DPROCPARAM_CALC_WORLD_SCNOBJMTX_NOUPDATE = BIT_FLAG(0) ,
  G3DPROCPARAM_SORT_ZSORT = BIT_FLAG(-1) ,
  G3DPROCPARAM_SORT_SORT = BIT_FLAG(0) ,
  G3DPROCPARAM_SORT_SORT_WITHFUNC = BIT_FLAG(1)
}
 Additional parameters for G3D process operations. More...
 

Public Member Functions

 NW4R_G3D_TYPE_OBJ_DECL (ScnProc)
 
- Public Member Functions inherited from nw4r::g3d::ScnLeaf
void SetScale (float x, float y, float z)
 
void SetScale (const nw4r::math::VEC3 &scale)
 
 NW4R_G3D_TYPE_OBJ_DECL (ScnLeaf)
 
- Public Member Functions inherited from nw4r::g3d::ScnObj
virtual void ForEach ()
 
virtual void SetScnObjOption (ulong option, ulong value)
 
virtual bool GetScnObjOption (ulong option, ulong *value) const
 
virtual float GetValueForSortOpa () const
 
virtual float GetValueForSortXlu () const
 
void SetPriorityDrawOpa (int priority)
 
void SetPriorityDrawXlu (int priority)
 
virtual void CalcWorldMtx (const nw4r::math::MTX34 *, unsigned long *) const
 
void SetMtx (ScnObjMtxType, const nw4r::math::MTX34 *)
 
void GetMtx (ScnObjMtxType, nw4r::math::MTX34 *) const
 
 NW4R_G3D_TYPE_OBJ_DECL (ScnObj)
 
- Public Member Functions inherited from nw4r::g3d::G3dObj
virtual bool IsDerivedFrom (G3dObj::TypeObj) const
 
virtual void G3dProc (ulong proc, ulong param, void *info)=0
 
virtual const TypeObj GetTypeObj ()
 
virtual const char * GetTypeName ()
 
void Destroy ()
 
void DetachFromParent ()
 

Static Public Member Functions

static ScnProcConstruct (MEMAllocator *, size_t *, void(*)(nw4r::g3d::ScnProc *, bool), bool, bool, unsigned long)
 
- Static Public Member Functions inherited from nw4r::g3d::G3dObj
template<typename DerivedType, typename Type>
static DerivedType * DynamicCast (Type *obj)
 

Public Attributes

u32 unk1
 
ScnObjCb * cb
 
void * mpHolder
 
- Public Attributes inherited from nw4r::g3d::ScnLeaf
nw4r::math::VEC3 mScale
 
- Public Attributes inherited from nw4r::g3d::ScnObj
u32 unk1
 
MEMAllocatormpAllocator
 
math::MTX34 mMtxs [3]
 
math::AABB aabbs [2]
 
u32 mFlags
 
u8 opaPriority
 
u8 xluPriority
 
u32 unk2
 
u8 callbackTimingFlags
 
u16 scnCallbackOp
 

Member Typedef Documentation

◆ ScnObjCb

typedef void nw4r::g3d::ScnProc::ScnObjCb(ScnProc *, bool)

Definition at line 16 of file scn_proc.hpp.

Member Data Documentation

◆ unk1

u32 nw4r::g3d::ScnProc::unk1

Definition at line 18 of file scn_proc.hpp.

◆ cb

ScnObjCb* nw4r::g3d::ScnProc::cb

Definition at line 19 of file scn_proc.hpp.

◆ mpHolder

void* nw4r::g3d::ScnProc::mpHolder

Definition at line 20 of file scn_proc.hpp.