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

Description

Definition at line 31 of file g3d_obj.h.

Classes

struct  ResNameDataT
 
class  TypeObj
 

Public Types

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
}
 

Public Member Functions

virtual bool IsDerivedFrom (TypeObj other) const
 
virtual void G3dProc (ulong task, ulong param, void *pInfo)=0
 
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 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_TYPEOBJ_DECL (G3dObj)
 

Private Attributes

G3dObjmpParent
 
MEMAllocatormpHeap
 

Member Enumeration Documentation

◆ G3dProcTask

enum nw4r::g3d::G3dObj::G3dProcTask

Definition at line 68 of file g3d_obj.h.

Constructor & Destructor Documentation

◆ G3dObj()

nw4r::g3d::G3dObj::G3dObj ( MEMAllocator * pAllocator,
G3dObj * pParent )
inline

Definition at line 107 of file g3d_obj.h.

Member Function Documentation

◆ IsDerivedFrom()

virtual bool nw4r::g3d::G3dObj::IsDerivedFrom ( TypeObj other) const
inlinevirtual

Definition at line 90 of file g3d_obj.h.

◆ GetTypeObj()

virtual const TypeObj nw4r::g3d::G3dObj::GetTypeObj ( ) const
inlinevirtual

Definition at line 97 of file g3d_obj.h.

◆ GetTypeObjStatic()

static const G3dObj::TypeObj nw4r::g3d::G3dObj::GetTypeObjStatic ( )
inlinestatic

Definition at line 100 of file g3d_obj.h.

◆ GetTypeName()

virtual const char * nw4r::g3d::G3dObj::GetTypeName ( ) const
inlinevirtual

Definition at line 103 of file g3d_obj.h.

◆ GetParent()

G3dObj * nw4r::g3d::G3dObj::GetParent ( ) const
inline

Definition at line 110 of file g3d_obj.h.

◆ SetParent()

void nw4r::g3d::G3dObj::SetParent ( G3dObj * pParent)
inline

Definition at line 113 of file g3d_obj.h.

◆ Alloc()

static void * nw4r::g3d::G3dObj::Alloc ( MEMAllocator * pAllocator,
ulong size )
inlinestatic

Definition at line 120 of file g3d_obj.h.

◆ Dealloc()

static void nw4r::g3d::G3dObj::Dealloc ( MEMAllocator * pAllocator,
void * pBlock )
inlinestatic

Definition at line 123 of file g3d_obj.h.

◆ operator new()

static void * nw4r::g3d::G3dObj::operator new ( size_t ,
void * pBlock )
inlinestatic

Definition at line 127 of file g3d_obj.h.

◆ operator delete()

static void nw4r::g3d::G3dObj::operator delete ( void * )
inlinestatic

Definition at line 130 of file g3d_obj.h.

◆ DynamicCast()

template<typename TTo>
static TTo * nw4r::g3d::G3dObj::DynamicCast ( G3dObj * pObj)
inlinestatic

Definition at line 132 of file g3d_obj.h.

Member Data Documentation

◆ mpParent

G3dObj* nw4r::g3d::G3dObj::mpParent
private

Definition at line 140 of file g3d_obj.h.

◆ mpHeap

MEMAllocator* nw4r::g3d::G3dObj::mpHeap
private

Definition at line 141 of file g3d_obj.h.