SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
NormalMapBase Class Reference
Inheritance diagram for NormalMapBase:
LiveActor NameObj

Public Member Functions

 NormalMapBase (const char *)
 
virtual void draw () const
 Draws the object. Does nothing until overridden.
 
virtual void calcAnim ()
 
virtual void control ()
 
virtual void drawSetting (MtxPtr) const
 
virtual void drawMaterialSetting (J3DMaterial *) const
 
virtual void setTevForObject () const
 
virtual void setTevForObject_Material () const
 
virtual void setTevForDebug () const
 
void setup (const char *)
 
void initNormalMap ()
 
void setupLighting ()
 
void updateBtkMtx ()
 
void loadTexMtxBtk (J3DMaterial *) const
 
void updateLightMtx (MtxPtr) const
 
bool isNormalMapMaterial (const char *) const
 
void standardDraw (J3DModel *) const
 
void shapeAnalyzeDraw (J3DModel *) const
 
void loadDirectLightTex (_GXTexMapID) const
 
- Public Member Functions inherited from LiveActor
 LiveActor (const char *pName)
 Constructs a new LiveActor instance.
 
virtual void init (JMapInfoIter const &)
 Intializes the NameObj and can set various settings and construct necessary classes.
 
virtual void movement ()
 
virtual void calcViewAndEntry ()
 
virtual void appear ()
 
virtual void makeActorAppeared ()
 
virtual void kill ()
 
virtual void makeActorDead ()
 
virtual bool receiveMessage (u32, HitSensor *, HitSensor *)
 
virtual MtxPtr getBaseMtx () const
 Gets the base matrix of the model used for the actor.
 
virtual MtxPtr getTakingMtx () const
 
virtual void startClipped ()
 
virtual void endClipped ()
 
virtual void calcAndSetBaseMtx ()
 Calculates and sets the base matrix of the actor.
 
virtual void updateHitSensor (HitSensor *)
 
virtual void attackSensor (HitSensor *, HitSensor *)
 
virtual bool receiveMsgPush (HitSensor *, HitSensor *)
 
virtual bool receiveMsgPlayerAttack (u32, HitSensor *, HitSensor *)
 
virtual bool receiveMsgEnemyAttack (u32, HitSensor *, HitSensor *)
 
virtual u32 receiveMsgTake (HitSensor *, HitSensor *)
 
virtual u32 receiveMsgTaken (HitSensor *, HitSensor *)
 
virtual u32 receiveMsgThrow (HitSensor *, HitSensor *)
 
virtual u32 receiveMsgApart (HitSensor *, HitSensor *)
 
virtual bool receiveOtherMsg (u32, HitSensor *, HitSensor *)
 
void calcAnmMtx ()
 
void setNerve (const Nerve *)
 
bool isNerve (const Nerve *) const
 
s32 getNerveStep () const
 
HitSensorgetSensor (const char *pSensorName) const
 Gets a sensor.
 
void initModelManagerWithAnm (const char *, const char *, bool)
 
void initNerve (const Nerve *)
 
void initHitSensor (int)
 
void initBinder (f32, f32, u32)
 
void initRailRider (const JMapInfoIter &)
 
void initEffectKeeper (int, const char *, bool)
 
void initSound (int, bool)
 
void initShadowControllerList (u32)
 
void initActorCollisionParts (const char *, HitSensor *, ResourceHolder *, MtxPtr, bool, bool)
 
void initStageSwitch (const JMapInfoIter &)
 
void initActorStarPointerTarget (f32, const TVec3f *, MtxPtr, TVec3f)
 
void initActorLightCtrl ()
 
void addToSoundObjHolder ()
 
void updateBinder ()
 
bool isBinderValid (Binder *pBinder)
 
TVec3f * getPosPtr ()
 
- Public Member Functions inherited from NameObj
 NameObj (const char *pName)
 Constructs a new NameObj instance.
 
virtual void initAfterPlacement ()
 
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

JUTTexture * _90
 
JUTTexture * mNormalTex
 
u8 _98 [0xDC-0x98]
 
void * mImagePtr
 
u32 _E0
 
s32 nGradTexMode
 
u32 _E8
 
u32 _EC
 
u8 _F0 [0x124-0xF0]
 
u8 mBackLightMode
 
Color10 mTevColor0
 
Color10 mTevColor1
 
u8 mLightAMode
 
u8 mLightBMode
 
u16 mHardLightColorMask
 
u16 mHardLightAlphaMask
 
u8 mAmbColor
 
u8 mMatColor
 
u8 mAmbAlpha
 
u8 mMatAlpha
 
u16 mUseModelLightReg
 
u16 mUseModelTevReg
 
u16 _14A
 
BtkPlayermBtkPlayer
 
u8 _150
 
u8 _151 [0x184-0x151]
 
MtxPtr _184 [0x10]
 
JUTTexture * _4B8
 
u32 _4BC
 
u32 _4C0
 
u8 _4C4
 
u8 _4C5
 
- Public Attributes inherited from LiveActor
TVec3f mPosition
 3D vector of the actor's position.
 
TVec3f mRotation
 3D vector of the actor's rotation.
 
TVec3f mScale
 3D vector of the actor's scale.
 
TVec3f mVelocity
 3D vector of the actor's velocity.
 
TVec3f mGravity
 3D vector of the actor's gravity.
 
ModelManagermModelManager
 A pointer to a ModelManager instance, used for drawing a 3D model.
 
ActorAnimKeepermAnimationKeeper
 A pointer to a ActorAnimKeeper instance, used for storing and playing model animations.
 
SpinemSpine
 
HitSensorKeepermSensorKeeper
 A pointer to a HitSensorKeeper instance, used for storing HitSensor instances.
 
BindermBinder
 
RailRidermRailRider
 A pointer to a RailRider instance, used for allowing the actor to ride on paths.
 
EffectKeepermEffectKeeper
 
AudAnmSoundObjectmSoundObject
 
LiveActorFlag mFlags
 Flags relating to drawing, animation calculation, etc.
 
ShadowControllerListmShadowList
 
CollisionPartsmCollisionParts
 
StageSwitchCtrlmStageSwitchCtrl
 A pointer to a StageSwitchCtrl instance, used for activating and deactivating switches.
 
StarPointerTarget * mStarPointerTarget
 
ActorLightCtrlmActorLightCtrl
 
ActorPadAndCameraCtrlmCameraCtrl
 
- 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 7 of file NormalMapBase.hpp.

Member Function Documentation

◆ draw()

virtual void NormalMapBase::draw ( ) const
virtual

Draws the object. Does nothing until overridden.

Reimplemented from NameObj.

◆ calcAnim()

virtual void NormalMapBase::calcAnim ( )
virtual

Reimplemented from LiveActor.

◆ control()

virtual void NormalMapBase::control ( )
virtual

Reimplemented from LiveActor.

Member Data Documentation

◆ _90

JUTTexture* NormalMapBase::_90

Definition at line 34 of file NormalMapBase.hpp.

◆ mNormalTex

JUTTexture* NormalMapBase::mNormalTex

Definition at line 35 of file NormalMapBase.hpp.

◆ _98

u8 NormalMapBase::_98[0xDC-0x98]

Definition at line 36 of file NormalMapBase.hpp.

◆ mImagePtr

void* NormalMapBase::mImagePtr

Definition at line 37 of file NormalMapBase.hpp.

◆ _E0

u32 NormalMapBase::_E0

Definition at line 38 of file NormalMapBase.hpp.

◆ nGradTexMode

s32 NormalMapBase::nGradTexMode

Definition at line 39 of file NormalMapBase.hpp.

◆ _E8

u32 NormalMapBase::_E8

Definition at line 40 of file NormalMapBase.hpp.

◆ _EC

u32 NormalMapBase::_EC

Definition at line 41 of file NormalMapBase.hpp.

◆ _F0

u8 NormalMapBase::_F0[0x124-0xF0]

Definition at line 42 of file NormalMapBase.hpp.

◆ mBackLightMode

u8 NormalMapBase::mBackLightMode

Definition at line 43 of file NormalMapBase.hpp.

◆ mTevColor0

Color10 NormalMapBase::mTevColor0

Definition at line 44 of file NormalMapBase.hpp.

◆ mTevColor1

Color10 NormalMapBase::mTevColor1

Definition at line 45 of file NormalMapBase.hpp.

◆ mLightAMode

u8 NormalMapBase::mLightAMode

Definition at line 46 of file NormalMapBase.hpp.

◆ mLightBMode

u8 NormalMapBase::mLightBMode

Definition at line 47 of file NormalMapBase.hpp.

◆ mHardLightColorMask

u16 NormalMapBase::mHardLightColorMask

Definition at line 48 of file NormalMapBase.hpp.

◆ mHardLightAlphaMask

u16 NormalMapBase::mHardLightAlphaMask

Definition at line 49 of file NormalMapBase.hpp.

◆ mAmbColor

u8 NormalMapBase::mAmbColor

Definition at line 50 of file NormalMapBase.hpp.

◆ mMatColor

u8 NormalMapBase::mMatColor

Definition at line 51 of file NormalMapBase.hpp.

◆ mAmbAlpha

u8 NormalMapBase::mAmbAlpha

Definition at line 52 of file NormalMapBase.hpp.

◆ mMatAlpha

u8 NormalMapBase::mMatAlpha

Definition at line 53 of file NormalMapBase.hpp.

◆ mUseModelLightReg

u16 NormalMapBase::mUseModelLightReg

Definition at line 54 of file NormalMapBase.hpp.

◆ mUseModelTevReg

u16 NormalMapBase::mUseModelTevReg

Definition at line 55 of file NormalMapBase.hpp.

◆ _14A

u16 NormalMapBase::_14A

Definition at line 56 of file NormalMapBase.hpp.

◆ mBtkPlayer

BtkPlayer* NormalMapBase::mBtkPlayer

Definition at line 57 of file NormalMapBase.hpp.

◆ _150

u8 NormalMapBase::_150

Definition at line 58 of file NormalMapBase.hpp.

◆ _151

u8 NormalMapBase::_151[0x184-0x151]

Definition at line 59 of file NormalMapBase.hpp.

◆ _184

MtxPtr NormalMapBase::_184[0x10]

Definition at line 60 of file NormalMapBase.hpp.

◆ _4B8

JUTTexture* NormalMapBase::_4B8

Definition at line 62 of file NormalMapBase.hpp.

◆ _4BC

u32 NormalMapBase::_4BC

Definition at line 63 of file NormalMapBase.hpp.

◆ _4C0

u32 NormalMapBase::_4C0

Definition at line 64 of file NormalMapBase.hpp.

◆ _4C4

u8 NormalMapBase::_4C4

Definition at line 65 of file NormalMapBase.hpp.

◆ _4C5

u8 NormalMapBase::_4C5

Definition at line 66 of file NormalMapBase.hpp.