SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
ShadowVolumeDrawer Class Reference
Inheritance diagram for ShadowVolumeDrawer:
ShadowDrawer NameObj ShadowVolumeBox ShadowVolumeLine ShadowVolumeModel ShadowVolumeCylinder ShadowVolumeOval ShadowVolumeOvalPole ShadowVolumeSphere

Public Member Functions

 ShadowVolumeDrawer (const char *)
 
virtual void draw () const
 Draws the object. Does nothing until overridden.
 
virtual void loadModelDrawMtx () const
 
virtual void drawShape () const
 
virtual bool isDraw () const
 
void setStartDrawShepeOffset (f32)
 
void setEndDrawShepeOffset (f32)
 
void onCutDropShadow ()
 
void offCutDropShadow ()
 
void calcBaseDropPosition (TVec3f *) const
 
void calcBaseDropPosition (TVec3f *, const ShadowController *) const
 
f32 calcBaseDropLength () const
 
f32 calcBaseDropLength (const ShadowController *) const
 
- Public Member Functions inherited from ShadowDrawer
 ShadowDrawer (const char *)
 
ShadowControllergetController () const
 
void setShadowController (ShadowController *)
 
- Public Member Functions inherited from NameObj
 NameObj (const char *pName)
 Constructs a new NameObj instance.
 
virtual void init (const JMapInfoIter &rIter)
 Intializes the NameObj and can set various settings and construct necessary classes.
 
virtual void initAfterPlacement ()
 
virtual void movement ()
 
virtual void calcAnim ()
 
virtual void calcViewAndEntry ()
 
void initWithoutIter ()
 Initializes a NameObj without a JMapInfoIter instance.
 
void setName (const char *pName)
 Sets the NameObj's mName.
 
void executeMovement ()
 
void requestSuspend ()
 
void requestResume ()
 
void syncWithFlags ()
 

Public Attributes

f32 mStartDrawShapeOffset
 
f32 mEndDrawShapeOffset
 
bool mIsCutDropShadow
 
- Public Attributes inherited from ShadowDrawer
ShadowControllermController
 
- Public Attributes inherited from NameObj
const char * mName
 A string to identify the NameObj.
 
volatile u16 mFlags
 Flags in relation to movement.
 
s16 mExecutorIdx
 The index into the NameObjExecuteInfo array.
 

Detailed Description

Definition at line 14 of file ShadowVolumeDrawer.hpp.

Constructor & Destructor Documentation

◆ ShadowVolumeDrawer()

ShadowVolumeDrawer::ShadowVolumeDrawer ( const char * pName)

Definition at line 14 of file ShadowVolumeDrawer.cpp.

Member Function Documentation

◆ draw()

void ShadowVolumeDrawer::draw ( ) const
virtual

Draws the object. Does nothing until overridden.

Reimplemented from NameObj.

Reimplemented in ShadowVolumeBox.

Definition at line 75 of file ShadowVolumeDrawer.cpp.

◆ loadModelDrawMtx()

void ShadowVolumeDrawer::loadModelDrawMtx ( ) const
virtual

Definition at line 63 of file ShadowVolumeDrawer.cpp.

◆ drawShape()

void ShadowVolumeDrawer::drawShape ( ) const
virtual

Definition at line 67 of file ShadowVolumeDrawer.cpp.

◆ isDraw()

bool ShadowVolumeDrawer::isDraw ( ) const
virtual

Definition at line 71 of file ShadowVolumeDrawer.cpp.

◆ setStartDrawShepeOffset()

void ShadowVolumeDrawer::setStartDrawShepeOffset ( f32 offs)

Definition at line 22 of file ShadowVolumeDrawer.cpp.

◆ setEndDrawShepeOffset()

void ShadowVolumeDrawer::setEndDrawShepeOffset ( f32 offs)

Definition at line 26 of file ShadowVolumeDrawer.cpp.

◆ onCutDropShadow()

void ShadowVolumeDrawer::onCutDropShadow ( )

Definition at line 30 of file ShadowVolumeDrawer.cpp.

◆ offCutDropShadow()

void ShadowVolumeDrawer::offCutDropShadow ( )

Definition at line 34 of file ShadowVolumeDrawer.cpp.

◆ calcBaseDropPosition()

void ShadowVolumeDrawer::calcBaseDropPosition ( TVec3f * pVec) const

Definition at line 38 of file ShadowVolumeDrawer.cpp.

◆ calcBaseDropLength()

f32 ShadowVolumeDrawer::calcBaseDropLength ( ) const

Definition at line 42 of file ShadowVolumeDrawer.cpp.

Member Data Documentation

◆ mStartDrawShapeOffset

f32 ShadowVolumeDrawer::mStartDrawShapeOffset

Definition at line 34 of file ShadowVolumeDrawer.hpp.

◆ mEndDrawShapeOffset

f32 ShadowVolumeDrawer::mEndDrawShapeOffset

Definition at line 35 of file ShadowVolumeDrawer.hpp.

◆ mIsCutDropShadow

bool ShadowVolumeDrawer::mIsCutDropShadow

Definition at line 36 of file ShadowVolumeDrawer.hpp.