mirror of
https://github.com/zeldaret/tww.git
synced 2026-08-11 11:32:42 -04:00
some cleanup
This commit is contained in:
@@ -448,8 +448,8 @@ private:
|
||||
class J3DAnmTevRegKey : public J3DAnmBase {
|
||||
public:
|
||||
J3DAnmTevRegKey();
|
||||
void getTevColorReg(u16, _GXColorS10*) const;
|
||||
void getTevKonstReg(u16, _GXColor*) const;
|
||||
void getTevColorReg(u16, GXColorS10*) const;
|
||||
void getTevKonstReg(u16, GXColor*) const;
|
||||
void searchUpdateMaterialID(J3DMaterialTable*);
|
||||
void searchUpdateMaterialID(J3DModelData*);
|
||||
|
||||
@@ -489,7 +489,7 @@ public:
|
||||
|
||||
virtual ~J3DAnmColor();
|
||||
virtual s32 getKind() const;
|
||||
virtual void getColor(u16, _GXColor*) const;
|
||||
virtual void getColor(u16, GXColor*) const;
|
||||
|
||||
u16 getUpdateMaterialNum() const { return mUpdateMaterialNum; }
|
||||
bool isValidUpdateMaterialID(u16 id) const { return mUpdateMaterialID[id] != 0xFFFF; }
|
||||
@@ -512,7 +512,7 @@ public:
|
||||
|
||||
virtual ~J3DAnmColorKey();
|
||||
virtual s32 getKind() const;
|
||||
virtual void getColor(u16, _GXColor*) const;
|
||||
virtual void getColor(u16, GXColor*) const;
|
||||
|
||||
private:
|
||||
/* 0x2C */ int field_0x2c;
|
||||
@@ -528,7 +528,7 @@ public:
|
||||
|
||||
virtual ~J3DAnmColorFull();
|
||||
virtual s32 getKind() const;
|
||||
virtual void getColor(u16, _GXColor*) const;
|
||||
virtual void getColor(u16, GXColor*) const;
|
||||
|
||||
private:
|
||||
/* 0x2C */ int field_0x2c;
|
||||
@@ -544,7 +544,7 @@ public:
|
||||
|
||||
virtual ~J3DAnmVtxColor();
|
||||
virtual s32 getKind() const;
|
||||
virtual void getColor(u8, u16, _GXColor*) const;
|
||||
virtual void getColor(u8, u16, GXColor*) const;
|
||||
|
||||
private:
|
||||
/* 0x0C */ s16 mAnmTableNum[2];
|
||||
@@ -557,7 +557,7 @@ public:
|
||||
|
||||
virtual ~J3DAnmVtxColorKey();
|
||||
virtual s32 getKind() const;
|
||||
virtual void getColor(u8, u16, _GXColor*) const;
|
||||
virtual void getColor(u8, u16, GXColor*) const;
|
||||
|
||||
private:
|
||||
/* 0x18 */ int field_0x18[2];
|
||||
@@ -568,7 +568,7 @@ class J3DAnmVtxColorFull : public J3DAnmVtxColor {
|
||||
|
||||
virtual ~J3DAnmVtxColorFull();
|
||||
virtual s32 getKind() const;
|
||||
virtual void getColor(u8, u16, _GXColor*) const;
|
||||
virtual void getColor(u8, u16, GXColor*) const;
|
||||
|
||||
private:
|
||||
/* 0x18 */ int field_0x18[2];
|
||||
|
||||
@@ -28,7 +28,7 @@ public:
|
||||
void setAnmFlag(bool flag) { mAnmFlag = flag; }
|
||||
bool getAnmFlag() const { return mAnmFlag; }
|
||||
void setAnmColor(J3DAnmColor* anmColor) { mAnmColor = anmColor; }
|
||||
void calc(_GXColor* pColor) const { mAnmColor->getColor(mAnmIndex, pColor); }
|
||||
void calc(GXColor* pColor) const { mAnmColor->getColor(mAnmIndex, pColor); }
|
||||
|
||||
private:
|
||||
/* 0x0 */ u16 mAnmIndex;
|
||||
@@ -117,7 +117,7 @@ public:
|
||||
void setAnmFlag(bool flag) { mAnmFlag = flag; }
|
||||
bool getAnmFlag() const { return mAnmFlag; }
|
||||
void setAnmTevReg(J3DAnmTevRegKey* tevReg) { mAnmTevReg = tevReg; }
|
||||
void calc(_GXColor* pColor) const { mAnmTevReg->getTevKonstReg(mAnmIndex, pColor); }
|
||||
void calc(GXColor* pColor) const { mAnmTevReg->getTevKonstReg(mAnmIndex, pColor); }
|
||||
|
||||
private:
|
||||
/* 0x0 */ u16 mAnmIndex;
|
||||
@@ -147,7 +147,7 @@ public:
|
||||
void setAnmFlag(bool flag) { mAnmFlag = flag; }
|
||||
bool getAnmFlag() const { return mAnmFlag; }
|
||||
void setAnmTevReg(J3DAnmTevRegKey* tevReg) { mAnmTevReg = tevReg; }
|
||||
void calc(_GXColorS10* pColor) const { mAnmTevReg->getTevColorReg(mAnmIndex, pColor); }
|
||||
void calc(GXColorS10* pColor) const { mAnmTevReg->getTevColorReg(mAnmIndex, pColor); }
|
||||
|
||||
private:
|
||||
/* 0x0 */ u16 mAnmIndex;
|
||||
|
||||
@@ -56,7 +56,7 @@ public:
|
||||
void setVtxNrm(void* pVtxNrm) { mVtxNrm = pVtxNrm; }
|
||||
|
||||
void* getVtxCol() const { return mVtxCol; }
|
||||
void setVtxCol(_GXColor* pVtxCol) { mVtxCol = pVtxCol; }
|
||||
void setVtxCol(GXColor* pVtxCol) { mVtxCol = pVtxCol; }
|
||||
|
||||
void setModel(J3DModel* pModel) { mModel = pModel; }
|
||||
void setShapePacket(J3DShapePacket* pPacket) { mShapePacket = pPacket; }
|
||||
@@ -129,7 +129,7 @@ public:
|
||||
/* 0x10C */ Mtx33* mModelNrmMtx;
|
||||
/* 0x110 */ void* mVtxPos;
|
||||
/* 0x114 */ void* mVtxNrm;
|
||||
/* 0x118 */ _GXColor* mVtxCol;
|
||||
/* 0x118 */ GXColor* mVtxCol;
|
||||
/* 0x11C */ void* field_0x11c;
|
||||
/* 0x120 */ void* field_0x120;
|
||||
/* 0x124 */ Vec* mNBTScale;
|
||||
|
||||
@@ -55,7 +55,7 @@ public:
|
||||
void clearEfb_init();
|
||||
void clearEfb(int param_0, int param_1, int param_2, int param_3, GXColor color);
|
||||
void clearEfb();
|
||||
void clearEfb(_GXColor color);
|
||||
void clearEfb(GXColor color);
|
||||
void calcCombinationRatio();
|
||||
|
||||
virtual void beginRender();
|
||||
|
||||
@@ -72,8 +72,8 @@ public:
|
||||
/* 0x8F */ u8 mCalcChldVisNum;
|
||||
/* 0x90 */ JPADrawContext mDrawContext;
|
||||
/* 0xB4 */ f32 mScaleOut;
|
||||
/* 0xB8 */ _GXColor mPrmColor;
|
||||
/* 0xBC */ _GXColor mEnvColor;
|
||||
/* 0xB8 */ GXColor mPrmColor;
|
||||
/* 0xBC */ GXColor mEnvColor;
|
||||
/* 0xC0 */ s16 mTexIdx;
|
||||
/* 0xC2 */ u8 field_0xc2;
|
||||
/* 0xC3 */ u8 field_0xC3[0xC4 - 0xC3];
|
||||
|
||||
@@ -29,7 +29,7 @@ class JPACallBackBase {
|
||||
public:
|
||||
JPACallBackBase() {}
|
||||
virtual ~JPACallBackBase() {}
|
||||
|
||||
|
||||
inline virtual void init(T);
|
||||
inline virtual void execute(T);
|
||||
inline virtual void executeAfter(T);
|
||||
@@ -41,7 +41,7 @@ class JPACallBackBase2 {
|
||||
public:
|
||||
JPACallBackBase2() {}
|
||||
virtual ~JPACallBackBase2() {}
|
||||
|
||||
|
||||
inline virtual void init(T, U);
|
||||
inline virtual void execute(T, U);
|
||||
inline virtual void draw(T, U);
|
||||
@@ -50,7 +50,7 @@ public:
|
||||
class JPABaseEmitter {
|
||||
public:
|
||||
typedef void (JPABaseEmitter::*VolumeFunc)();
|
||||
|
||||
|
||||
void calcVolumePoint();
|
||||
void calcVolumeLine();
|
||||
void calcVolumeCircle();
|
||||
@@ -81,7 +81,7 @@ public:
|
||||
void clearStatus(u32 status) { mFlags &= ~status; }
|
||||
bool checkStatus(u32 status) { return mFlags & status; }
|
||||
void initStatus(u32 status);
|
||||
|
||||
|
||||
u8 getGlobalAlpha() { return mGlobalPrmColor.a; }
|
||||
void setGlobalAlpha(u8 alpha) { mGlobalPrmColor.a = alpha; }
|
||||
void setGlobalRTMatrix(MtxP mtx) {
|
||||
@@ -89,14 +89,14 @@ public:
|
||||
}
|
||||
void setGlobalTranslation(f32 x, f32 y, f32 z) { mGlobalTranslation.set(x, y, z); }
|
||||
void setGlobalScale(const JGeometry::TVec3<float>& scale) {
|
||||
mGlobalScale.set(scale);
|
||||
mGlobalScale2D.set(scale);
|
||||
mGlobalDynamicsScale.set(scale);
|
||||
mGlobalParticleScale.set(scale);
|
||||
}
|
||||
void setGlobalParticleScale(const JGeometry::TVec3<float>& scale) {
|
||||
mGlobalScale2D.set(scale);
|
||||
mGlobalParticleScale.set(scale);
|
||||
}
|
||||
void setGlobalDynamicsScale(const JGeometry::TVec3<float>& scale) {
|
||||
mGlobalScale.set(scale);
|
||||
mGlobalDynamicsScale.set(scale);
|
||||
}
|
||||
void setDirection(const JGeometry::TVec3<float>& dir) {
|
||||
mEmitterDir.set(dir);
|
||||
@@ -115,14 +115,14 @@ public:
|
||||
mMaxFrame = -1;
|
||||
stopCreateParticle();
|
||||
}
|
||||
|
||||
|
||||
void setEmitterCallBackPtr(JPACallBackBase<JPABaseEmitter*>* callback) {
|
||||
mpEmitterCallBack = callback;
|
||||
}
|
||||
void setParticleCallBackPtr(JPACallBackBase2<JPABaseEmitter*, JPABaseParticle*>* callback) {
|
||||
mpParticleCallBack = callback;
|
||||
}
|
||||
|
||||
|
||||
/* 0x000 */ VolumeFunc mVolumeFunc;
|
||||
/* 0x00C */ cXyz mEmitterScale;
|
||||
/* 0x018 */ cXyz mEmitterTranslation;
|
||||
@@ -167,11 +167,11 @@ public:
|
||||
/* 0x1A0 */ JPACallBackBase2<JPABaseEmitter*, JPABaseParticle*>* mpParticleCallBack;
|
||||
/* 0x1A4 */ JMath::TRandom_fast_ mRandomSeed;
|
||||
/* 0x1A8 */ Mtx mGlobalRotation;
|
||||
/* 0x1D8 */ JGeometry::TVec3<f32> mGlobalScale;
|
||||
/* 0x1D8 */ JGeometry::TVec3<f32> mGlobalDynamicsScale;
|
||||
/* 0x1E4 */ JGeometry::TVec3<f32> mGlobalTranslation;
|
||||
/* 0x1F0 */ JGeometry::TVec3<f32> mGlobalScale2D;
|
||||
/* 0x1FC */ _GXColor mGlobalPrmColor;
|
||||
/* 0x200 */ _GXColor mGlobalEnvColor;
|
||||
/* 0x1F0 */ JGeometry::TVec3<f32> mGlobalParticleScale;
|
||||
/* 0x1FC */ GXColor mGlobalPrmColor;
|
||||
/* 0x200 */ GXColor mGlobalEnvColor;
|
||||
/* 0x204 */ f32 mEmitCount;
|
||||
/* 0x208 */ f32 mRateStepTimer;
|
||||
/* 0x20C */ u32 mFlags;
|
||||
|
||||
@@ -21,7 +21,7 @@ public:
|
||||
void execute(JPABaseEmitter*);
|
||||
void end();
|
||||
void makeEmitter(u16, MtxP, const cXyz*, const cXyz*);
|
||||
void makeEmitterColor(u16, MtxP, const cXyz*, const _GXColor*, const _GXColor*);
|
||||
void makeEmitterColor(u16, MtxP, const cXyz*, const GXColor*, const GXColor*);
|
||||
void setup(JPABaseEmitter* emitter, const cXyz*, const csXyz*, s8) { mpEmitter = emitter; }
|
||||
|
||||
/* 0x04 */ JPABaseEmitter* mpEmitter;
|
||||
|
||||
@@ -128,7 +128,7 @@ public:
|
||||
|
||||
class daPy_mtxPosFollowEcallBack_c {
|
||||
public:
|
||||
void makeEmitterColor(unsigned short, float(*)[4], const cXyz*, const csXyz*, const _GXColor*, const _GXColor*);
|
||||
void makeEmitterColor(unsigned short, float(*)[4], const cXyz*, const csXyz*, const GXColor*, const GXColor*);
|
||||
void execute(JPABaseEmitter*);
|
||||
daPy_mtxPosFollowEcallBack_c();
|
||||
~daPy_mtxPosFollowEcallBack_c();
|
||||
|
||||
@@ -190,7 +190,7 @@ public:
|
||||
s32 getNum() { return mNum; }
|
||||
|
||||
public:
|
||||
/* 0x00 */ _GXColor mColor;
|
||||
/* 0x00 */ GXColor mColor;
|
||||
/* 0x04 */ s16 mCapacity;
|
||||
/* 0x06 */ s16 mNum;
|
||||
/* 0x08 */ dDlst_alphaModelData_c* mpData;
|
||||
|
||||
@@ -64,7 +64,7 @@ class dPa_smokeEcallBack : public dPa_followEcallBack {
|
||||
public:
|
||||
dPa_smokeEcallBack(u8=1);
|
||||
dPa_smokeEcallBack(u8, u8, u8, u8);
|
||||
dPa_smokeEcallBack(const _GXColor&, dKy_tevstr_c*, u8);
|
||||
dPa_smokeEcallBack(const GXColor&, dKy_tevstr_c*, u8);
|
||||
virtual ~dPa_smokeEcallBack() {}
|
||||
|
||||
virtual void draw(JPABaseEmitter*);
|
||||
@@ -73,7 +73,7 @@ public:
|
||||
|
||||
/* 0x14 */ s8 field_0x14;
|
||||
/* 0x15 */ u8 field_0x15;
|
||||
/* 0x16 */ _GXColor field_0x16;
|
||||
/* 0x16 */ GXColor field_0x16;
|
||||
/* 0x1A */ u8 field_0x1A[0x1C - 0x1A];
|
||||
/* 0x1C */ dKy_tevstr_c* mTevstr;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user