SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
NormalMapBase.hpp
1#pragma once
2
3#include "Game/Animation/AnmPlayer.h"
4#include "Game/LiveActor/LiveActor.hpp"
5#include "JSystem/JUtility/JUTTexture.hpp"
6
7class NormalMapBase : public LiveActor {
8public:
9 NormalMapBase(const char *);
10
11 virtual ~NormalMapBase();
12 virtual void draw() const;
13 virtual void calcAnim();
14 virtual void control();
15 virtual void drawSetting(MtxPtr) const;
16 virtual void drawMaterialSetting(J3DMaterial *) const;
17 virtual void setTevForObject() const;
18 virtual void setTevForObject_Material() const;
19 virtual void setTevForDebug() const;
20
21 void setup(const char *);
22 void initNormalMap();
23 void setupLighting();
24
25 void updateBtkMtx();
26 void loadTexMtxBtk(J3DMaterial *) const;
27 void updateLightMtx(MtxPtr) const;
28 bool isNormalMapMaterial(const char *) const;
29 void standardDraw(J3DModel *) const;
30 void shapeAnalyzeDraw(J3DModel *) const;
31
32 void loadDirectLightTex(_GXTexMapID) const;
33
34 JUTTexture* _90;
35 JUTTexture* mNormalTex; // _94
36 u8 _98[0xDC-0x98];
37 void* mImagePtr; // _DC
38 u32 _E0;
39 s32 nGradTexMode; // _E4
40 u32 _E8;
41 u32 _EC;
42 u8 _F0[0x124-0xF0];
43 u8 mBackLightMode; // _124
44 Color10 mTevColor0; // _128
45 Color10 mTevColor1; // _130
46 u8 mLightAMode; // _13C
47 u8 mLightBMode; // _13D
48 u16 mHardLightColorMask; // _13E
49 u16 mHardLightAlphaMask; // _140
50 u8 mAmbColor; // _142
51 u8 mMatColor; // _143
52 u8 mAmbAlpha; // _144
53 u8 mMatAlpha; // _145
54 u16 mUseModelLightReg; // _146
55 u16 mUseModelTevReg; // _148
56 u16 _14A;
57 BtkPlayer* mBtkPlayer; // _14C
58 u8 _150;
59 u8 _151[0x184-0x151];
60 MtxPtr _184[0x10]; // _184
61
62 JUTTexture* _4B8;
63 u32 _4BC;
64 u32 _4C0;
65 u8 _4C4;
66 u8 _4C5;
67};
The basis of a drawable actor that can contain states (see: Nerve)
Definition LiveActor.hpp:24
virtual void draw() const
Draws the object. Does nothing until overridden.