mirror of
https://github.com/encounter/tp.git
synced 2026-07-11 06:18:46 -07:00
J2D structs + print / fix GX + MSL string headers (#157)
* J2D structs + print / fix GX + MSL string headers * remove msl_c/string.h
This commit is contained in:
@@ -1,80 +1,13 @@
|
||||
#ifndef J2DANIMATION_H
|
||||
#define J2DANIMATION_H
|
||||
|
||||
#include "dolphin/gx/GXTexture.h"
|
||||
#include "JSystem/JUtility/JUTNameTab.h"
|
||||
#include "JSystem/JUtility/JUTTexture.h"
|
||||
#include "dolphin/gx/GX.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
struct J3DTransformInfo;
|
||||
struct J3DTextureSRTInfo;
|
||||
class J2DScreen;
|
||||
|
||||
struct J2DAnmVtxColorKey {
|
||||
/* 8030B704 */ void getColor(u8, u16, _GXColor*) const;
|
||||
/* 8030CC20 */ ~J2DAnmVtxColorKey();
|
||||
};
|
||||
|
||||
struct J2DAnmVtxColorFull {
|
||||
/* 8030B4C4 */ void getColor(u8, u16, _GXColor*) const;
|
||||
/* 8030CC8C */ ~J2DAnmVtxColorFull();
|
||||
};
|
||||
|
||||
struct J2DAnmVisibilityFull {
|
||||
/* 8030C048 */ void getVisibility(u16, u8*) const;
|
||||
};
|
||||
|
||||
struct J2DAnmTransformKey {
|
||||
/* 801959C0 */ ~J2DAnmTransformKey();
|
||||
/* 8030AAFC */ void calcTransform(f32, u16, J3DTransformInfo*) const;
|
||||
/* 8030CD7C */ void getTransform(u16, J3DTransformInfo*) const;
|
||||
};
|
||||
|
||||
struct J2DAnmTransformFull {
|
||||
/* 8030A590 */ void getTransform(u16, J3DTransformInfo*) const;
|
||||
/* 8030CDAC */ ~J2DAnmTransformFull();
|
||||
};
|
||||
|
||||
struct J2DAnmTextureSRTKey {
|
||||
/* 80184274 */ ~J2DAnmTextureSRTKey();
|
||||
/* 8030B9F0 */ void calcTransform(f32, u16, J3DTextureSRTInfo*) const;
|
||||
/* 8030BC60 */ void searchUpdateMaterialID(J2DScreen*);
|
||||
};
|
||||
|
||||
struct J2DAnmTexPattern {
|
||||
struct J2DAnmTexPatternTIMGPointer {
|
||||
/* 8030CB2C */ J2DAnmTexPatternTIMGPointer();
|
||||
/* 8030CB3C */ ~J2DAnmTexPatternTIMGPointer();
|
||||
};
|
||||
|
||||
/* 8030BD10 */ void searchUpdateMaterialID(J2DScreen*);
|
||||
/* 8030BEE8 */ void getTexNo(u16, u16*) const;
|
||||
/* 8030BF9C */ void getResTIMG(u16) const;
|
||||
/* 8030BFF0 */ void getPalette(u16) const;
|
||||
/* 8030CB90 */ ~J2DAnmTexPattern();
|
||||
};
|
||||
|
||||
struct J2DAnmTevRegKey {
|
||||
/* 801841EC */ ~J2DAnmTevRegKey();
|
||||
/* 8030C0F0 */ void getTevColorReg(u16, _GXColorS10*) const;
|
||||
/* 8030C3B4 */ void getTevKonstReg(u16, _GXColor*) const;
|
||||
/* 8030C678 */ void searchUpdateMaterialID(J2DScreen*);
|
||||
};
|
||||
|
||||
struct J2DAnmColorKey {
|
||||
/* 80239BE0 */ ~J2DAnmColorKey();
|
||||
/* 8030B200 */ void getColor(u16, _GXColor*) const;
|
||||
};
|
||||
|
||||
struct J2DAnmColorFull {
|
||||
/* 8030AFC8 */ void getColor(u16, _GXColor*) const;
|
||||
/* 8030CCF8 */ ~J2DAnmColorFull();
|
||||
};
|
||||
|
||||
struct J2DAnmColor {
|
||||
/* 801842FC */ ~J2DAnmColor();
|
||||
/* 802EB390 */ void getColor(u16, _GXColor*) const;
|
||||
/* 8030AF24 */ void searchUpdateMaterialID(J2DScreen*);
|
||||
};
|
||||
|
||||
class J2DAnmBase {
|
||||
public:
|
||||
/* 80053C94 */ virtual ~J2DAnmBase();
|
||||
@@ -88,11 +21,230 @@ private:
|
||||
/* 0x4 */ u8 field_0x4[2];
|
||||
/* 0x6 */ s16 mFrameMax;
|
||||
/* 0x8 */ f32 mFrame;
|
||||
/* 0xC */ int mKind;
|
||||
/* 0xC */ s32 mKind;
|
||||
}; // Size: 0x10
|
||||
|
||||
class J2DAnmVtxColor : public J2DAnmBase {
|
||||
public:
|
||||
/* 8030A358 */ virtual ~J2DAnmVtxColor();
|
||||
/* 8030363C */ virtual void getColor(u8, u16, _GXColor*) const;
|
||||
|
||||
private:
|
||||
/* 0x10 */ u16 mAnmTableNum[2];
|
||||
/* 0x14 */ void* mVtxColorIndexData[2];
|
||||
/* 0x1C */ void* mVtxColorIndexPointer[2];
|
||||
}; // Size: 0x24
|
||||
|
||||
struct J3DTransformInfo;
|
||||
struct J3DTextureSRTInfo;
|
||||
|
||||
class J2DAnmVtxColorKey : public J2DAnmVtxColor {
|
||||
/* 8030CC20 */ virtual ~J2DAnmVtxColorKey();
|
||||
/* 8030B704 */ virtual void getColor(u8, u16, _GXColor*) const;
|
||||
|
||||
private:
|
||||
/* 0x24 */ void* field_0x24[2];
|
||||
/* 0x2C */ void* field_0x2c;
|
||||
/* 0x30 */ void* field_0x30;
|
||||
/* 0x34 */ void* field_0x34;
|
||||
/* 0x38 */ void* field_0x38;
|
||||
}; // Size: 0x3C
|
||||
|
||||
class J2DAnmVtxColorFull : public J2DAnmVtxColor {
|
||||
public:
|
||||
/* 8030CC8C */ virtual ~J2DAnmVtxColorFull();
|
||||
/* 8030B4C4 */ virtual void getColor(u8, u16, _GXColor*) const;
|
||||
|
||||
private:
|
||||
/* 0x24 */ void* field_0x24[2];
|
||||
/* 0x2C */ void* field_0x2c;
|
||||
/* 0x30 */ void* field_0x30;
|
||||
/* 0x34 */ void* field_0x34;
|
||||
/* 0x38 */ void* field_0x38;
|
||||
}; // Size: 0x3C
|
||||
|
||||
class J2DAnmVisibilityFull : public J2DAnmBase {
|
||||
public:
|
||||
/* 8030A3B4 */ virtual ~J2DAnmVisibilityFull();
|
||||
/* 8030C048 */ void getVisibility(u16, u8*) const;
|
||||
|
||||
private:
|
||||
/* 0x10 */ u16 field_0x10;
|
||||
/* 0x12 */ u16 field_0x12;
|
||||
/* 0x14 */ void* field_0x14;
|
||||
/* 0x18 */ void* field_0x18;
|
||||
}; // Size: 0x1C
|
||||
|
||||
class J2DAnmTransform : public J2DAnmBase {
|
||||
public:
|
||||
/* 80184370 */ virtual ~J2DAnmTransform();
|
||||
/* 80191130 */ virtual void getTransform(u16, J3DTransformInfo*) const;
|
||||
|
||||
private:
|
||||
/* 0x10 */ f32* field_0x10;
|
||||
/* 0x14 */ s16* field_0x14;
|
||||
/* 0x18 */ f32* field_0x18;
|
||||
}; // Size: 0x1C
|
||||
|
||||
class J2DAnmTransformKey : public J2DAnmTransform {
|
||||
public:
|
||||
/* 801959C0 */ virtual ~J2DAnmTransformKey();
|
||||
/* 8030CD7C */ virtual void getTransform(u16, J3DTransformInfo*) const;
|
||||
/* 8030AAFC */ virtual void calcTransform(f32, u16, J3DTransformInfo*) const;
|
||||
|
||||
private:
|
||||
/* 0x1C */ u8 field_0x1c[8];
|
||||
/* 0x24 */ void* field_0x24;
|
||||
/* 0x28 */ void* field_0x28;
|
||||
};
|
||||
|
||||
struct J2DAnmVtxColor {};
|
||||
class J2DAnmTransformFull : public J2DAnmTransform {
|
||||
public:
|
||||
/* 8030CDAC */ virtual ~J2DAnmTransformFull();
|
||||
/* 8030A590 */ virtual void getTransform(u16, J3DTransformInfo*) const;
|
||||
|
||||
struct J2DAnmTransform {};
|
||||
private:
|
||||
/* 0x1C */ u8 field_0x1c[6];
|
||||
/* 0x22 */ u16 field_0x22;
|
||||
/* 0x24 */ void* field_0x24;
|
||||
};
|
||||
|
||||
class J2DAnmTextureSRTKey : public J2DAnmBase {
|
||||
public:
|
||||
/* 8030B9F0 */ void calcTransform(f32, u16, J3DTextureSRTInfo*) const;
|
||||
|
||||
/* 80184274 */ virtual ~J2DAnmTextureSRTKey();
|
||||
/* 8030BC60 */ virtual void searchUpdateMaterialID(J2DScreen*);
|
||||
|
||||
private:
|
||||
/* 0x10 */ int field_0x10;
|
||||
/* 0x14 */ int field_0x14;
|
||||
/* 0x18 */ u16 mUpdateMaterialNum;
|
||||
/* 0x1A */ u16 field_0x1a;
|
||||
/* 0x1C */ u16 field_0x1c;
|
||||
/* 0x20 */ int field_0x20;
|
||||
/* 0x24 */ int field_0x24;
|
||||
/* 0x28 */ int field_0x28;
|
||||
/* 0x2C */ u8* mUpdateTexMtxID;
|
||||
/* 0x30 */ u16* mUpdateMaterialID;
|
||||
/* 0x34 */ JUTNameTab field_0x34;
|
||||
/* 0x44 */ u8 field_0x44[4];
|
||||
/* 0x48 */ u16 field_0x48;
|
||||
/* 0x4A */ u16 field_0x4a;
|
||||
/* 0x4C */ u16 field_0x4c;
|
||||
/* 0x4E */ u16 field_0x4e;
|
||||
/* 0x50 */ int field_0x50;
|
||||
/* 0x54 */ int field_0x54;
|
||||
/* 0x58 */ int field_0x58;
|
||||
/* 0x5C */ int field_0x5c;
|
||||
/* 0x60 */ u8 field_0x60[8];
|
||||
/* 0x68 */ JUTNameTab field_0x68;
|
||||
/* 0x78 */ u8 field_0x78[4];
|
||||
/* 0x7C */ int field_0x7c;
|
||||
};
|
||||
|
||||
class J2DAnmTexPattern : public J2DAnmBase {
|
||||
public:
|
||||
struct J2DAnmTexPatternTIMGPointer {
|
||||
/* 8030CB2C */ J2DAnmTexPatternTIMGPointer();
|
||||
/* 8030CB3C */ ~J2DAnmTexPatternTIMGPointer();
|
||||
|
||||
/* 0x0 */ ResTIMG* mRes;
|
||||
/* 0x4 */ JUTPalette* mPalette;
|
||||
}; // Size: 0x8
|
||||
|
||||
/* 8030BEE8 */ void getTexNo(u16, u16*) const;
|
||||
/* 8030BF9C */ void getResTIMG(u16) const;
|
||||
/* 8030BFF0 */ void getPalette(u16) const;
|
||||
|
||||
/* 8030CB90 */ virtual ~J2DAnmTexPattern();
|
||||
/* 8030BD10 */ virtual void searchUpdateMaterialID(J2DScreen*);
|
||||
|
||||
private:
|
||||
/* 0x10 */ int field_0x10;
|
||||
/* 0x14 */ void* mAnmTable;
|
||||
/* 0x18 */ u8 field_0x18[2];
|
||||
/* 0x1A */ u16 mUpdateMaterialNum;
|
||||
/* 0x1C */ u16* mUpdaterMaterialID;
|
||||
/* 0x20 */ JUTNameTab field_0x20;
|
||||
/* 0x30 */ J2DAnmTexPatternTIMGPointer* mTIMGPtrArray;
|
||||
};
|
||||
|
||||
class J2DAnmTevRegKey : public J2DAnmBase {
|
||||
public:
|
||||
/* 8030C0F0 */ void getTevColorReg(u16, _GXColorS10*) const;
|
||||
/* 8030C3B4 */ void getTevKonstReg(u16, _GXColor*) const;
|
||||
|
||||
/* 801841EC */ virtual ~J2DAnmTevRegKey();
|
||||
/* 8030C678 */ virtual void searchUpdateMaterialID(J2DScreen*);
|
||||
|
||||
private:
|
||||
/* 0x10 */ u16 mCRegUpdateMaterialNum;
|
||||
/* 0x12 */ u16 mKRegUpdateMaterialNum;
|
||||
/* 0x14 */ u16 field_0x14;
|
||||
/* 0x16 */ u16 field_0x16;
|
||||
/* 0x18 */ u16 field_0x18;
|
||||
/* 0x1A */ u16 field_0x1a;
|
||||
/* 0x1C */ u16 field_0x1c;
|
||||
/* 0x1E */ u16 field_0x1e;
|
||||
/* 0x20 */ u16 field_0x20;
|
||||
/* 0x22 */ u16 field_0x22;
|
||||
/* 0x24 */ u16* mCRegUpdateMaterialID;
|
||||
/* 0x28 */ JUTNameTab field_0x28;
|
||||
/* 0x38 */ u16* mKRegUpdateMaterialID;
|
||||
/* 0x3C */ JUTNameTab field_0x3c;
|
||||
/* 0x4C */ void* mAnmCRegKeyTable;
|
||||
/* 0x50 */ void* mAnmKRegKeyTable;
|
||||
/* 0x54 */ int field_0x54;
|
||||
/* 0x58 */ int field_0x58;
|
||||
/* 0x5C */ int field_0x5c;
|
||||
/* 0x60 */ int field_0x60;
|
||||
/* 0x64 */ int field_0x64;
|
||||
/* 0x68 */ int field_0x68;
|
||||
/* 0x6C */ int field_0x6c;
|
||||
/* 0x70 */ int field_0x70;
|
||||
};
|
||||
|
||||
class J2DAnmColor : public J2DAnmBase {
|
||||
public:
|
||||
/* 801842FC */ virtual ~J2DAnmColor();
|
||||
/* 8030AF24 */ virtual void searchUpdateMaterialID(J2DScreen*);
|
||||
/* 802EB390 */ virtual void getColor(u16, _GXColor*) const;
|
||||
|
||||
private:
|
||||
/* 0x10 */ u16 field_0x10;
|
||||
/* 0x10 */ u16 field_0x12;
|
||||
/* 0x14 */ u16 field_0x14;
|
||||
/* 0x16 */ u16 field_0x16;
|
||||
/* 0x18 */ u16 mUpdateMaterialNum;
|
||||
/* 0x1C */ u16* mUpdateMaterialID;
|
||||
/* 0x20 */ JUTNameTab field_0x20;
|
||||
}; // Size: 0x30
|
||||
|
||||
class J2DAnmColorKey : public J2DAnmColor {
|
||||
public:
|
||||
/* 80239BE0 */ virtual ~J2DAnmColorKey();
|
||||
/* 8030B200 */ virtual void getColor(u16, _GXColor*) const;
|
||||
|
||||
private:
|
||||
/* 0x30 */ int field_0x30;
|
||||
/* 0x34 */ int field_0x34;
|
||||
/* 0x38 */ int field_0x38;
|
||||
/* 0x3C */ int field_0x3c;
|
||||
/* 0x40 */ int field_0x40;
|
||||
};
|
||||
|
||||
class J2DAnmColorFull : public J2DAnmColor {
|
||||
public:
|
||||
/* 8030CCF8 */ virtual ~J2DAnmColorFull();
|
||||
/* 8030AFC8 */ virtual void getColor(u16, _GXColor*) const;
|
||||
|
||||
private:
|
||||
/* 0x30 */ int field_0x30;
|
||||
/* 0x34 */ int field_0x34;
|
||||
/* 0x38 */ int field_0x38;
|
||||
/* 0x3C */ int field_0x3c;
|
||||
/* 0x40 */ int field_0x40;
|
||||
};
|
||||
|
||||
#endif /* J2DANIMATION_H */
|
||||
|
||||
@@ -1,6 +1,68 @@
|
||||
#ifndef J2DANMLOADER_H
|
||||
#define J2DANMLOADER_H
|
||||
|
||||
#include "JSystem/J2DGraph/J2DAnimation.h"
|
||||
#include "JSystem/J3DGraphAnimator/J3DAnimation.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
struct J2DAnmLoaderDataBase {
|
||||
/* 80308A6C */ static void load(void const*);
|
||||
};
|
||||
|
||||
class J2DAnmLoader {
|
||||
public:
|
||||
virtual void load(void const*) = 0;
|
||||
virtual void setResource(J2DAnmBase*, void const*) = 0;
|
||||
/* 8030A410 */ virtual ~J2DAnmLoader();
|
||||
};
|
||||
|
||||
struct J3DAnmTransformKeyData;
|
||||
struct J3DAnmTextureSRTKeyData;
|
||||
struct J3DAnmColorKeyData;
|
||||
struct J3DAnmVtxColorKeyData;
|
||||
struct J3DAnmTevRegKeyData;
|
||||
struct J3DAnmTransformFullData;
|
||||
struct J3DAnmColorFullData;
|
||||
struct J3DAnmTexPatternFullData;
|
||||
struct J3DAnmVisibilityFullData;
|
||||
struct J3DAnmVtxColorFullData;
|
||||
|
||||
class J2DAnmKeyLoader_v15 : public J2DAnmLoader {
|
||||
public:
|
||||
/* 80309290 */ J2DAnmKeyLoader_v15();
|
||||
/* 80309570 */ void readAnmTransform(J3DAnmTransformKeyData const*);
|
||||
/* 80309598 */ void setAnmTransform(J2DAnmTransformKey*, J3DAnmTransformKeyData const*);
|
||||
/* 80309634 */ void readAnmTextureSRT(J3DAnmTextureSRTKeyData const*);
|
||||
/* 8030965C */ void setAnmTextureSRT(J2DAnmTextureSRTKey*, J3DAnmTextureSRTKeyData const*);
|
||||
/* 80309848 */ void readAnmColor(J3DAnmColorKeyData const*);
|
||||
/* 80309870 */ void setAnmColor(J2DAnmColorKey*, J3DAnmColorKeyData const*);
|
||||
/* 8030995C */ void readAnmVtxColor(J3DAnmVtxColorKeyData const*);
|
||||
/* 80309984 */ void setAnmVtxColor(J2DAnmVtxColorKey*, J3DAnmVtxColorKeyData const*);
|
||||
/* 80309FDC */ void readAnmTevReg(J3DAnmTevRegKeyData const*);
|
||||
/* 8030A004 */ void setAnmTevReg(J2DAnmTevRegKey*, J3DAnmTevRegKeyData const*);
|
||||
|
||||
/* 80309308 */ virtual void load(void const*);
|
||||
/* 80309414 */ virtual void setResource(J2DAnmBase*, void const*);
|
||||
/* 803092AC */ virtual ~J2DAnmKeyLoader_v15();
|
||||
};
|
||||
|
||||
class J2DAnmFullLoader_v15 : public J2DAnmLoader {
|
||||
public:
|
||||
/* 80309CE8 */ J2DAnmFullLoader_v15();
|
||||
/* 80309D60 */ void readAnmTransform(J3DAnmTransformFullData const*);
|
||||
/* 80309D88 */ void setAnmTransform(J2DAnmTransformFull*, J3DAnmTransformFullData const*);
|
||||
/* 80309E1C */ void readAnmColor(J3DAnmColorFullData const*);
|
||||
/* 80309E44 */ void setAnmColor(J2DAnmColorFull*, J3DAnmColorFullData const*);
|
||||
/* 80309F10 */ void readAnmTexPattern(J3DAnmTexPatternFullData const*);
|
||||
/* 80309F38 */ void setAnmTexPattern(J2DAnmTexPattern*, J3DAnmTexPatternFullData const*);
|
||||
/* 8030A190 */ void readAnmVisibility(J3DAnmVisibilityFullData const*);
|
||||
/* 8030A1B8 */ void setAnmVisibility(J2DAnmVisibilityFull*, J3DAnmVisibilityFullData const*);
|
||||
/* 8030A234 */ void readAnmVtxColor(J3DAnmVtxColorFullData const*);
|
||||
/* 8030A25C */ void setAnmVtxColor(J2DAnmVtxColorFull*, J3DAnmVtxColorFullData const*);
|
||||
|
||||
/* 80309A80 */ virtual void load(void const*);
|
||||
/* 80309B8C */ virtual void setResource(J2DAnmBase*, void const*);
|
||||
/* 80309D04 */ virtual ~J2DAnmFullLoader_v15();
|
||||
};
|
||||
|
||||
#endif /* J2DANMLOADER_H */
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -2,15 +2,27 @@
|
||||
#define J2DMATERIAL_H
|
||||
|
||||
#include "JSystem/J2DGraph/J2DAnimation.h"
|
||||
#include "JSystem/J2DGraph/J2DMatBlock.h"
|
||||
#include "dolphin/gx/GX.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
struct J2DMaterial {
|
||||
class J2DMaterial {
|
||||
public:
|
||||
struct J2DMaterialAnmPointer {
|
||||
/* 802EA79C */ J2DMaterialAnmPointer();
|
||||
};
|
||||
|
||||
/* 0x00 */ int field_0x0;
|
||||
/* 0x04 */ int field_0x4;
|
||||
/* 0x08 */ int field_0x8;
|
||||
/* 0x0C */ int field_0xc;
|
||||
/* 0x10 */ u16 field_0x10;
|
||||
/* 0x12 */ u16 field_0x12[8];
|
||||
/* 0x22 */ u16 field_0x22[8];
|
||||
/* 0x32 */ u16 field_0x32[4];
|
||||
/* 0x3A */ u16 field_0x3a[4];
|
||||
}; // Size: 0x44
|
||||
|
||||
/* 802EA1AC */ J2DMaterial();
|
||||
/* 802EA2CC */ ~J2DMaterial();
|
||||
/* 802EA38C */ void setGX();
|
||||
/* 802EA410 */ void createTevBlock(int, bool);
|
||||
/* 802EA5C4 */ void createIndBlock(int, bool);
|
||||
@@ -20,6 +32,21 @@ struct J2DMaterial {
|
||||
/* 802EAB0C */ void setAnimation(J2DAnmTevRegKey*);
|
||||
/* 802EA89C */ void setAnimation(J2DAnmColor*);
|
||||
/* 802EAC78 */ void animation();
|
||||
|
||||
/* 802EA2CC */ virtual ~J2DMaterial();
|
||||
|
||||
private:
|
||||
/* 0x04 */ int field_0x4;
|
||||
/* 0x08 */ int field_0x8;
|
||||
/* 0x0C */ u16 mIndex;
|
||||
/* 0x0E */ bool mVisible;
|
||||
/* 0x0F */ u8 mMaterialAlphaCalc;
|
||||
/* 0x10 */ J2DColorBlock mColorBlock;
|
||||
/* 0x28 */ J2DTexGenBlock mTexGenBlock;
|
||||
/* 0x70 */ J2DTevBlock* mTevBlock;
|
||||
/* 0x74 */ J2DIndBlock* mIndBlock;
|
||||
/* 0x78 */ J2DPEBlock mPEBlock;
|
||||
/* 0x84 */ J2DMaterialAnmPointer* mAnmPointer;
|
||||
};
|
||||
|
||||
#endif /* J2DMATERIAL_H */
|
||||
|
||||
@@ -1,6 +1,72 @@
|
||||
#ifndef J2DMATERIALFACTORY_H
|
||||
#define J2DMATERIALFACTORY_H
|
||||
|
||||
#include "JSystem/J2DGraph/J2DManage.h"
|
||||
#include "JSystem/J2DGraph/J2DMaterial.h"
|
||||
#include "JSystem/JKernel/JKRArchive.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
struct J2DMaterialBlock {};
|
||||
|
||||
struct J2DMaterialInitData;
|
||||
struct J2DIndInitData;
|
||||
struct J2DTevSwapModeTableInfo;
|
||||
struct J2DAlphaCompInfo;
|
||||
|
||||
class J2DMaterialFactory {
|
||||
public:
|
||||
/* 802F2AD0 */ J2DMaterialFactory(J2DMaterialBlock const&);
|
||||
/* 802F2C94 */ void countStages(int) const;
|
||||
/* 802F2D1C */ void create(J2DMaterial*, int, u32, J2DResReference*, J2DResReference*,
|
||||
JKRArchive*) const;
|
||||
/* 802F362C */ void newMatColor(int, int) const;
|
||||
/* 802F36CC */ void newColorChanNum(int) const;
|
||||
/* 802F3704 */ void newColorChan(int, int) const;
|
||||
/* 802F3758 */ void newTexGenNum(int) const;
|
||||
/* 802F3790 */ void newTexCoord(int, int) const;
|
||||
/* 802F3804 */ void newTexMtx(int, int) const;
|
||||
/* 802F38E0 */ void newCullMode(int) const;
|
||||
/* 802F3920 */ void newTexNo(int, int) const;
|
||||
/* 802F3968 */ void newFontNo(int) const;
|
||||
/* 802F39A8 */ void newTevOrder(int, int) const;
|
||||
/* 802F3A1C */ void newTevColor(int, int) const;
|
||||
/* 802F3AB4 */ void newTevKColor(int, int) const;
|
||||
/* 802F3B54 */ void newTevStageNum(int) const;
|
||||
/* 802F3B8C */ void newTevStage(int, int) const;
|
||||
/* 802F3BEC */ void newTevSwapModeTable(int, int) const;
|
||||
/* 802F3C88 */ void newIndTexStageNum(int) const;
|
||||
/* 802F3CB8 */ void newIndTexOrder(int, int) const;
|
||||
/* 802F3D20 */ void newIndTexMtx(int, int) const;
|
||||
/* 802F3E24 */ void newIndTevStage(int, int) const;
|
||||
/* 802F3F78 */ void newIndTexCoordScale(int, int) const;
|
||||
/* 802F3FE0 */ void newAlphaComp(int) const;
|
||||
/* 802F405C */ void newBlend(int) const;
|
||||
/* 802F40D8 */ void newDither(int) const;
|
||||
|
||||
private:
|
||||
/* 0x00 */ int field_0x0;
|
||||
/* 0x04 */ J2DMaterialInitData* field_0x4;
|
||||
/* 0x08 */ u16* field_0x8;
|
||||
/* 0x0C */ J2DIndInitData* field_0xc;
|
||||
/* 0x10 */ GXColor* field_0x10;
|
||||
/* 0x14 */ u8* field_0x14;
|
||||
/* 0x18 */ J2DColorChanInfo* field_0x18;
|
||||
/* 0x1C */ u8* field_0x1c;
|
||||
/* 0x20 */ J2DTexCoordInfo* field_0x20;
|
||||
/* 0x24 */ J2DTexMtxInfo* field_0x24;
|
||||
/* 0x28 */ u16* field_0x28;
|
||||
/* 0x2C */ u16* field_0x2c;
|
||||
/* 0x30 */ _GXCullMode* field_0x30;
|
||||
/* 0x34 */ J2DTevOrderInfo* field_0x34;
|
||||
/* 0x38 */ GXColorS10* field_0x38;
|
||||
/* 0x3C */ GXColor* field_0x3c;
|
||||
/* 0x40 */ u8* field_0x40;
|
||||
/* 0x44 */ J2DTevStageInfo* field_0x44;
|
||||
/* 0x48 */ J2DTevSwapModeInfo* field_0x48;
|
||||
/* 0x4C */ J2DTevSwapModeTableInfo* field_0x4c;
|
||||
/* 0x50 */ J2DAlphaCompInfo* field_0x50;
|
||||
/* 0x54 */ J2DBlendInfo* field_0x54;
|
||||
/* 0x58 */ u8* field_0x58;
|
||||
};
|
||||
|
||||
#endif /* J2DMATERIALFACTORY_H */
|
||||
|
||||
@@ -1,6 +1,102 @@
|
||||
#ifndef J2DPICTUREEX_H
|
||||
#define J2DPICTUREEX_H
|
||||
|
||||
#include "JSystem/J2DGraph/J2DMaterial.h"
|
||||
#include "JSystem/J2DGraph/J2DPicture.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
class J2DPictureEx : public J2DPicture {
|
||||
public:
|
||||
enum stage_enum {};
|
||||
|
||||
/* 803036EC */ J2DPictureEx(J2DPane*, JSURandomInputStream*, u32, J2DMaterial*);
|
||||
/* 803040E4 */ void insertCommon(u8, f32);
|
||||
/* 8030437C */ void isInsert(u8) const;
|
||||
/* 80304728 */ void isRemove(u8) const;
|
||||
/* 803052AC */ void setTevOrder(u8, u8, bool);
|
||||
/* 803053E0 */ void setTevStage(u8, u8, bool);
|
||||
/* 80305688 */ void setStage(J2DTevStage*, J2DPictureEx::stage_enum);
|
||||
/* 80305928 */ void setTevKColor(u8);
|
||||
/* 80305C70 */ void setTevKColorSel(u8);
|
||||
/* 80305D18 */ void setTevKAlphaSel(u8);
|
||||
/* 80305DC0 */ void shiftSetBlendRatio(u8, f32, bool, bool);
|
||||
/* 80306664 */ void getBlackWhite(JUtility::TColor*, JUtility::TColor*) const;
|
||||
/* 80306824 */ void isSetBlackWhite(JUtility::TColor, JUtility::TColor) const;
|
||||
|
||||
/* 8030393C */ virtual ~J2DPictureEx();
|
||||
/* 80307168 */ virtual void setCullBack(bool);
|
||||
/* 803069D8 */ virtual void setCullBack(_GXCullMode);
|
||||
/* 803069B8 */ virtual void setAlpha(u8);
|
||||
/* 80303AB4 */ virtual void drawSelf(f32, f32, f32 (*)[3][4]);
|
||||
/* 80306A24 */ virtual void isUsed(ResTIMG const*);
|
||||
/* 803071A4 */ virtual void isUsed(ResFONT const*);
|
||||
/* 80306A0C */ virtual void rewriteAlpha();
|
||||
/* 803071C4 */ virtual void setAnimation(J2DAnmBase*);
|
||||
/* 80256064 */ virtual void setAnimation(J2DAnmTransform*);
|
||||
/* 80306AC4 */ virtual void setAnimation(J2DAnmColor*);
|
||||
/* 80306B1C */ virtual void setAnimation(J2DAnmTexPattern*);
|
||||
/* 80306AF0 */ virtual void setAnimation(J2DAnmTextureSRTKey*);
|
||||
/* 80306B48 */ virtual void setAnimation(J2DAnmTevRegKey*);
|
||||
/* 80306B74 */ virtual void setAnimation(J2DAnmVisibilityFull*);
|
||||
/* 80306B7C */ virtual void setAnimation(J2DAnmVtxColor*);
|
||||
/* 80306C70 */ virtual void animationPane(J2DAnmTransform const*);
|
||||
/* 80303640 */ virtual void initiate(ResTIMG const*, ResTLUT const*);
|
||||
/* 803039CC */ virtual void prepareTexture(u8);
|
||||
/* 80306ED4 */ virtual void append(ResTIMG const*, f32);
|
||||
/* 80303E5C */ virtual void append(ResTIMG const*, JUTPalette*, f32);
|
||||
/* 80306F04 */ virtual void append(char const*, f32);
|
||||
/* 80303EA4 */ virtual void append(char const*, JUTPalette*, f32);
|
||||
/* 80303EEC */ virtual void append(JUTTexture*, f32);
|
||||
/* 80306FF4 */ virtual void prepend(ResTIMG const*, f32);
|
||||
/* 80306FC4 */ virtual void prepend(ResTIMG const*, JUTPalette*, f32);
|
||||
/* 80306F94 */ virtual void prepend(char const*, f32);
|
||||
/* 80306F64 */ virtual void prepend(char const*, JUTPalette*, f32);
|
||||
/* 80306F34 */ virtual void prepend(JUTTexture*, f32);
|
||||
/* 80307058 */ virtual void insert(ResTIMG const*, u8, f32);
|
||||
/* 80303F34 */ virtual void insert(ResTIMG const*, JUTPalette*, u8, f32);
|
||||
/* 80307024 */ virtual void insert(char const*, u8, f32);
|
||||
/* 80303FD8 */ virtual void insert(char const*, JUTPalette*, u8, f32);
|
||||
/* 80304048 */ virtual void insert(JUTTexture*, u8, f32);
|
||||
/* 8030446C */ virtual void remove(u8);
|
||||
/* 80304608 */ virtual void remove();
|
||||
/* 8030466C */ virtual void remove(JUTTexture*);
|
||||
/* 8030708C */ virtual void draw(f32, f32, bool, bool, bool);
|
||||
/* 8030477C */ virtual void draw(f32, f32, u8, bool, bool, bool);
|
||||
/* 80304890 */ virtual void draw(f32, f32, f32, f32, bool, bool, bool);
|
||||
/* 80304D88 */ virtual void drawOut(f32, f32, f32, f32, f32, f32);
|
||||
/* 803070D0 */ virtual void drawOut(f32, f32, f32, f32, f32, f32, f32, f32);
|
||||
/* 80304EF0 */ virtual void drawOut(JGeometry::TBox2<f32> const&, JGeometry::TBox2<f32> const&);
|
||||
/* 80305264 */ virtual void load(_GXTexMapID, u8);
|
||||
/* 80307134 */ virtual void load(u8);
|
||||
/* 80305ED4 */ virtual void setBlendColorRatio(f32, f32);
|
||||
/* 80305F34 */ virtual void setBlendAlphaRatio(f32, f32);
|
||||
/* 80305F94 */ virtual void changeTexture(ResTIMG const*, u8);
|
||||
/* 803060DC */ virtual void changeTexture(char const*, u8);
|
||||
/* 80306134 */ virtual void changeTexture(ResTIMG const*, u8, JUTPalette*);
|
||||
/* 80306298 */ virtual void changeTexture(char const*, u8, JUTPalette*);
|
||||
/* 803062F8 */ virtual void getTexture(u8) const;
|
||||
/* 80306350 */ virtual void getTextureCount() const;
|
||||
/* 80306370 */ virtual void setBlack(JUtility::TColor);
|
||||
/* 803063F8 */ virtual void setWhite(JUtility::TColor);
|
||||
/* 80306480 */ virtual void setBlackWhite(JUtility::TColor, JUtility::TColor);
|
||||
/* 803068F8 */ virtual void getBlack() const;
|
||||
/* 80306958 */ virtual void getWhite() const;
|
||||
/* 80256034 */ virtual void getMaterial() const;
|
||||
/* 80303B80 */ virtual void drawFullSet(f32, f32, f32, f32, f32 (*)[3][4]);
|
||||
/* 80303BDC */ virtual void drawTexCoord(f32, f32, f32, f32, s16, s16, s16, s16, s16, s16, s16,
|
||||
s16, f32 (*)[3][4]);
|
||||
/* 80306DC8 */ virtual void getUsableTlut(u8);
|
||||
|
||||
private:
|
||||
/* 0x150 */ J2DMaterial* mMaterial;
|
||||
/* 0x154 */ u16 field_0x154;
|
||||
/* 0x156 */ u16 field_0x156;
|
||||
/* 0x158 */ u16 field_0x158[4];
|
||||
/* 0x160 */ f32 field_0x160[6]; // related to blend color ratio
|
||||
/* 0x178 */ f32 field_0x178[6]; // related to blend alpha ratio
|
||||
/* 0x190 */ u8 field_0x190;
|
||||
/* 0x194 */ int field_0x194;
|
||||
/* 0x198 */ int field_0x198;
|
||||
};
|
||||
|
||||
#endif /* J2DPICTUREEX_H */
|
||||
|
||||
@@ -1,6 +1,68 @@
|
||||
#ifndef J2DPRINT_H
|
||||
#define J2DPRINT_H
|
||||
|
||||
#include "JSystem/J2DGraph/J2DTextBox.h"
|
||||
#include "JSystem/JUtility/TColor.h"
|
||||
#include "MSL_C.PPCEABI.bare.H/MSL_Common/Src/printf.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
class J2DPrint {
|
||||
public:
|
||||
struct TSize {
|
||||
/* 0x0 */ f32 field_0x0;
|
||||
/* 0x4 */ f32 field_0x4;
|
||||
};
|
||||
|
||||
/* 802F4394 */ J2DPrint(JUTFont*, f32, f32, JUtility::TColor, JUtility::TColor,
|
||||
JUtility::TColor, JUtility::TColor);
|
||||
/* 802F4658 */ static u8* setBuffer(size_t);
|
||||
/* 802F46C4 */ void setFontSize();
|
||||
/* 802F475C */ void locate(f32, f32);
|
||||
/* 802F4778 */ void print(f32, f32, u8, char const*, ...);
|
||||
/* 802F4828 */ void printReturn(char const*, f32, f32, J2DTextBoxHBinding, J2DTextBoxVBinding,
|
||||
f32, f32, u8);
|
||||
/* 802F4B4C */ void parse(u8 const*, int, int, u16*, J2DPrint::TSize&, u8, bool);
|
||||
/* 802F52E8 */ void doCtrlCode(int);
|
||||
/* 802F5410 */ void doEscapeCode(u8 const**, u8);
|
||||
/* 802F594C */ void initchar();
|
||||
/* 802F59C0 */ void getNumberS32(u8 const**, s32, s32, int);
|
||||
/* 802F5AC4 */ void getNumberF32(u8 const**, f32, f32, int);
|
||||
|
||||
/* 802F4420 */ virtual ~J2DPrint();
|
||||
|
||||
static const u8* mStrBuff;
|
||||
static size_t mStrBuffSize;
|
||||
|
||||
private:
|
||||
/* 802F4468 */ void private_initiate(JUTFont*, f32, f32, JUtility::TColor, JUtility::TColor,
|
||||
JUtility::TColor, JUtility::TColor, bool);
|
||||
|
||||
/* 0x04 */ JUTFont* mFont;
|
||||
/* 0x08 */ JUtility::TColor field_0x8;
|
||||
/* 0x0C */ JUtility::TColor field_0xc;
|
||||
/* 0x10 */ f32 field_0x10;
|
||||
/* 0x14 */ f32 field_0x14;
|
||||
/* 0x18 */ f32 field_0x18;
|
||||
/* 0x1C */ f32 field_0x1c;
|
||||
/* 0x20 */ s16 field_0x20;
|
||||
/* 0x22 */ u8 field_0x22;
|
||||
/* 0x24 */ f32 field_0x24;
|
||||
/* 0x28 */ f32 field_0x28;
|
||||
/* 0x2C */ f32 field_0x2c;
|
||||
/* 0x30 */ f32 mCursorV;
|
||||
/* 0x34 */ f32 field_0x34;
|
||||
/* 0x38 */ JUtility::TColor field_0x38;
|
||||
/* 0x3C */ JUtility::TColor field_0x3c;
|
||||
/* 0x40 */ JUtility::TColor mCharColor;
|
||||
/* 0x44 */ JUtility::TColor mGradColor;
|
||||
/* 0x48 */ f32 field_0x48;
|
||||
/* 0x4C */ f32 field_0x4c;
|
||||
/* 0x50 */ f32 mFontSizeX;
|
||||
/* 0x54 */ f32 mFontSizeY;
|
||||
/* 0x58 */ s16 field_0x58;
|
||||
/* 0x5A */ u8 field_0x5a;
|
||||
}; // Size: 0x5C
|
||||
|
||||
f32 J2DPrint_print_alpha_va(J2DPrint*, u8, const char*, va_list);
|
||||
|
||||
#endif /* J2DPRINT_H */
|
||||
|
||||
@@ -1,6 +1,169 @@
|
||||
#ifndef J2DTEVS_H
|
||||
#define J2DTEVS_H
|
||||
|
||||
#include "dolphin/mtx/mtxvec.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
struct J2DTextureSRTInfo {
|
||||
/* 0x00 */ f32 field_0x0;
|
||||
/* 0x04 */ f32 field_0x4;
|
||||
/* 0x08 */ f32 field_0x8;
|
||||
/* 0x0C */ f32 field_0xc;
|
||||
/* 0x10 */ f32 field_0x10;
|
||||
}; // Size: 0x14
|
||||
|
||||
struct J2DTexMtxInfo {
|
||||
/* 0x00 */ u8 field_0x0;
|
||||
/* 0x01 */ u8 field_0x1;
|
||||
/* 0x02 */ u8 field_0x2; // padding ?
|
||||
/* 0x03 */ u8 field_0x3; // padding ?
|
||||
/* 0x04 */ Vec field_0x4;
|
||||
/* 0x10 */ J2DTextureSRTInfo mTexSRTInfo;
|
||||
}; // Size: 0x24
|
||||
|
||||
class J2DTexMtx {
|
||||
public:
|
||||
/* 802E9C90 */ void load(u32);
|
||||
/* 802E9CC4 */ void calc();
|
||||
/* 802E9D2C */ void getTextureMtx(J2DTextureSRTInfo const&, Vec, f32 (*)[4]);
|
||||
/* 802E9EBC */ void getTextureMtxMaya(J2DTextureSRTInfo const&, f32 (*)[4]);
|
||||
|
||||
private:
|
||||
/* 0x00 */ J2DTexMtxInfo mTexMtxInfo;
|
||||
/* 0x24 */ Mtx mTexMtx;
|
||||
};
|
||||
|
||||
struct J2DIndTexOrderInfo {
|
||||
/* 0x0 */ u8 field_0x0;
|
||||
/* 0x1 */ u8 field_0x1;
|
||||
};
|
||||
|
||||
class J2DIndTexOrder {
|
||||
public:
|
||||
/* 802EB378 */ J2DIndTexOrder();
|
||||
/* 802EA0FC */ void load(u8);
|
||||
|
||||
private:
|
||||
/* 0x0 */ J2DIndTexOrderInfo mIndTexOrderInfo;
|
||||
};
|
||||
|
||||
struct J2DIndTexMtxInfo {
|
||||
/* 0x00 */ Mtx23 mMtx;
|
||||
/* 0x18 */ u8 field_0x18;
|
||||
};
|
||||
|
||||
class J2DIndTexMtx {
|
||||
public:
|
||||
/* 802EB2E4 */ ~J2DIndTexMtx();
|
||||
/* 802EB320 */ J2DIndTexMtx();
|
||||
/* 802EA098 */ void load(u8);
|
||||
/* 802E9C90 */ void load(u32);
|
||||
/* 802E9CC4 */ void calc();
|
||||
|
||||
private:
|
||||
/* 0x0 */ J2DIndTexMtxInfo mIndTexMtxInfo;
|
||||
}; // Size: 0x1C
|
||||
|
||||
struct J2DIndTexCoordScaleInfo {
|
||||
/* 0x0 */ u8 field_0x0;
|
||||
/* 0x0 */ u8 field_0x1;
|
||||
};
|
||||
|
||||
class J2DIndTexCoordScale {
|
||||
public:
|
||||
/* 802EB290 */ ~J2DIndTexCoordScale();
|
||||
/* 802EB2CC */ J2DIndTexCoordScale();
|
||||
/* 802EA0CC */ void load(u8);
|
||||
|
||||
private:
|
||||
/* 0x0 */ J2DIndTexCoordScaleInfo mIndTexCoordScaleInfo;
|
||||
}; // Size: 0x2
|
||||
|
||||
class J2DIndTevStage {
|
||||
public:
|
||||
/* 802EA044 */ void load(u8);
|
||||
/* 802F18A0 */ J2DIndTevStage();
|
||||
|
||||
private:
|
||||
/* 0x0 */ u32 mFlags;
|
||||
};
|
||||
|
||||
struct J2DTexCoordInfo {
|
||||
/* 0x0 */ u8 mTexGenType;
|
||||
/* 0x1 */ u8 mTexGenSrc;
|
||||
/* 0x2 */ u8 mTexGenMtx;
|
||||
u8 padding; // ?
|
||||
};
|
||||
|
||||
class J2DTexCoord {
|
||||
public:
|
||||
/* 802EB260 */ J2DTexCoord();
|
||||
|
||||
private:
|
||||
/* 0x0 */ J2DTexCoordInfo mTexCoordInfo;
|
||||
};
|
||||
|
||||
struct J2DTevOrderInfo {
|
||||
/* 0x0 */ u8 mTexCoord;
|
||||
/* 0x1 */ u8 mTexMap;
|
||||
/* 0x2 */ u8 mColor;
|
||||
};
|
||||
|
||||
class J2DTevOrder {
|
||||
public:
|
||||
/* 802F1B70 */ J2DTevOrder();
|
||||
|
||||
private:
|
||||
/* 0x0 */ J2DTevOrderInfo mTevOrderInfo;
|
||||
};
|
||||
|
||||
struct J2DTevStageInfo {
|
||||
/* 0x00 */ u8 field_0x0;
|
||||
/* 0x01 */ u8 field_0x1;
|
||||
/* 0x02 */ u8 field_0x2;
|
||||
/* 0x03 */ u8 field_0x3;
|
||||
/* 0x04 */ u8 field_0x4;
|
||||
/* 0x05 */ u8 field_0x5;
|
||||
/* 0x06 */ u8 field_0x6;
|
||||
/* 0x07 */ u8 field_0x7;
|
||||
/* 0x08 */ u8 field_0x8;
|
||||
/* 0x09 */ u8 field_0x9;
|
||||
/* 0x0A */ u8 field_0xa;
|
||||
/* 0x0B */ u8 field_0xb;
|
||||
/* 0x0C */ u8 field_0xc;
|
||||
/* 0x0D */ u8 field_0xd;
|
||||
/* 0x0E */ u8 field_0xe;
|
||||
/* 0x0F */ u8 field_0xf;
|
||||
/* 0x10 */ u8 field_0x10;
|
||||
/* 0x11 */ u8 field_0x11;
|
||||
/* 0x12 */ u8 field_0x12;
|
||||
};
|
||||
|
||||
class J2DTevStage {
|
||||
public:
|
||||
/* 802F4110 */ J2DTevStage(J2DTevStageInfo const&);
|
||||
/* 802F1940 */ J2DTevStage();
|
||||
/* 802F19A8 */ void setTevStageInfo(J2DTevStageInfo const&);
|
||||
|
||||
private:
|
||||
/* 0x0 */ u8 field_0x0;
|
||||
/* 0x1 */ u8 field_0x1;
|
||||
/* 0x2 */ u8 field_0x2;
|
||||
/* 0x3 */ u8 field_0x3;
|
||||
/* 0x4 */ u8 field_0x4;
|
||||
/* 0x5 */ u8 field_0x5;
|
||||
/* 0x6 */ u8 field_0x6;
|
||||
/* 0x7 */ u8 field_0x7;
|
||||
};
|
||||
|
||||
struct J2DTevSwapModeInfo {};
|
||||
|
||||
class J2DTevSwapModeTable {
|
||||
public:
|
||||
/* 802F1934 */ J2DTevSwapModeTable();
|
||||
|
||||
private:
|
||||
/* 0x0 */ u8 field_0x0;
|
||||
};
|
||||
|
||||
#endif /* J2DTEVS_H */
|
||||
|
||||
@@ -1,6 +1,56 @@
|
||||
#ifndef J2DTEXTBOXEX_H
|
||||
#define J2DTEXTBOXEX_H
|
||||
|
||||
#include "JSystem/J2DGraph/J2DMaterial.h"
|
||||
#include "JSystem/J2DGraph/J2DPrint.h"
|
||||
#include "JSystem/J2DGraph/J2DTextBox.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
class J2DTextBoxEx : public J2DTextBox {
|
||||
public:
|
||||
enum stage_enum {};
|
||||
|
||||
/* 803071E4 */ J2DTextBoxEx(J2DPane*, JSURandomInputStream*, u32, J2DMaterial*);
|
||||
/* 80307E0C */ void setTevOrder(bool);
|
||||
/* 80307EF0 */ void setTevStage(bool);
|
||||
/* 80307F94 */ void setStage(J2DTevStage*, J2DTextBoxEx::stage_enum);
|
||||
/* 803084CC */ void getBlackWhite(JUtility::TColor*, JUtility::TColor*) const;
|
||||
/* 80308668 */ void isSetBlackWhite(JUtility::TColor, JUtility::TColor) const;
|
||||
|
||||
/* 8030751C */ virtual ~J2DTextBoxEx();
|
||||
/* 803089EC */ virtual void setCullBack(bool);
|
||||
/* 803087DC */ virtual void setCullBack(_GXCullMode);
|
||||
/* 803087BC */ virtual void setAlpha(u8);
|
||||
/* 803075AC */ virtual void drawSelf(f32, f32, f32 (*)[3][4]);
|
||||
/* 80308A28 */ virtual void isUsed(ResTIMG const*);
|
||||
/* 80308828 */ virtual void isUsed(ResFONT const*);
|
||||
/* 80308810 */ virtual void rewriteAlpha();
|
||||
/* 80308A4C */ virtual void setAnimation(J2DAnmBase*);
|
||||
/* 80256044 */ virtual void setAnimation(J2DAnmTransform*);
|
||||
/* 803088B4 */ virtual void setAnimation(J2DAnmColor*);
|
||||
/* 8030890C */ virtual void setAnimation(J2DAnmTexPattern*);
|
||||
/* 803088E0 */ virtual void setAnimation(J2DAnmTextureSRTKey*);
|
||||
/* 80308938 */ virtual void setAnimation(J2DAnmTevRegKey*);
|
||||
/* 80308964 */ virtual void setAnimation(J2DAnmVisibilityFull*);
|
||||
/* 80308A48 */ virtual void setAnimation(J2DAnmVtxColor*);
|
||||
/* 8030896C */ virtual void animationPane(J2DAnmTransform const*);
|
||||
/* 803078AC */ virtual void draw(f32, f32);
|
||||
/* 80307AF0 */ virtual void draw(f32, f32, f32, J2DTextBoxHBinding);
|
||||
/* 80307D5C */ virtual void setFont(JUTFont*);
|
||||
/* 80307DC0 */ virtual void getFont() const;
|
||||
/* 8030823C */ virtual void setBlack(JUtility::TColor);
|
||||
/* 803082C4 */ virtual void setWhite(JUtility::TColor);
|
||||
/* 8030834C */ virtual void setBlackWhite(JUtility::TColor, JUtility::TColor);
|
||||
/* 803086FC */ virtual void getBlack() const;
|
||||
/* 8030875C */ virtual void getWhite() const;
|
||||
/* 80256024 */ virtual void getMaterial() const;
|
||||
|
||||
private:
|
||||
/* 0x134 */ u8 field_0x134[4];
|
||||
/* 0x138 */ J2DMaterial* mMaterial;
|
||||
/* 0x13C */ u16 field_0x13c;
|
||||
/* 0x13E */ u16 field_0x13e;
|
||||
/* 0x140 */ u8 field_0x140;
|
||||
}; // Size: 0x144
|
||||
|
||||
#endif /* J2DTEXTBOXEX_H */
|
||||
|
||||
@@ -1,6 +1,68 @@
|
||||
#ifndef J2DWINDOWEX_H
|
||||
#define J2DWINDOWEX_H
|
||||
|
||||
#include "JSystem/J2DGraph/J2DMaterial.h"
|
||||
#include "JSystem/J2DGraph/J2DWindow.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
class J2DWindowEx : public J2DWindow {
|
||||
public:
|
||||
enum stage_enum {};
|
||||
|
||||
/* 80300C94 */ J2DWindowEx(J2DPane*, JSURandomInputStream*, u32, J2DMaterial*);
|
||||
/* 80300F80 */ void setMinSize();
|
||||
/* 803012CC */ void draw_private(JGeometry::TBox2<f32> const&, JGeometry::TBox2<f32> const&);
|
||||
/* 80301D74 */ void drawFrameTexture(f32, f32, f32, f32, u16, u16, u16, u16, J2DMaterial*,
|
||||
bool);
|
||||
/* 80302284 */ void setTevOrder(bool);
|
||||
/* 80302388 */ void setTevStage(bool);
|
||||
/* 803024B4 */ void setStage(J2DTevStage*, J2DWindowEx::stage_enum);
|
||||
/* 80302A4C */ void getBlackWhite(JUtility::TColor*, JUtility::TColor*) const;
|
||||
/* 80302BE8 */ void isSetBlackWhite(JUtility::TColor, JUtility::TColor) const;
|
||||
/* 8030321C */ void isNeedSetAnm(u8);
|
||||
|
||||
/* 80301144 */ virtual ~J2DWindowEx();
|
||||
/* 803035C0 */ virtual void setCullBack(bool);
|
||||
/* 80302D98 */ virtual void setCullBack(_GXCullMode);
|
||||
/* 80302D48 */ virtual void setAlpha(u8);
|
||||
/* 8030122C */ virtual void drawSelf(f32, f32, f32 (*)[3][4]);
|
||||
/* 80302EDC */ virtual void isUsed(ResTIMG const*);
|
||||
/* 803035FC */ virtual void isUsed(ResFONT const*);
|
||||
/* 80302DF4 */ virtual void rewriteAlpha();
|
||||
/* 8030361C */ virtual void setAnimation(J2DAnmBase*);
|
||||
/* 80256084 */ virtual void setAnimation(J2DAnmTransform*);
|
||||
/* 80302FFC */ virtual void setAnimation(J2DAnmColor*);
|
||||
/* 8030310C */ virtual void setAnimation(J2DAnmTexPattern*);
|
||||
/* 80303084 */ virtual void setAnimation(J2DAnmTextureSRTKey*);
|
||||
/* 80303194 */ virtual void setAnimation(J2DAnmTevRegKey*);
|
||||
/* 80303274 */ virtual void setAnimation(J2DAnmVisibilityFull*);
|
||||
/* 8030327C */ virtual void setAnimation(J2DAnmVtxColor*);
|
||||
/* 80303370 */ virtual void animationPane(J2DAnmTransform const*);
|
||||
/* 80301FC8 */ virtual void draw(JGeometry::TBox2<f32> const&);
|
||||
/* 80302164 */ virtual void draw(JGeometry::TBox2<f32> const&, JGeometry::TBox2<f32> const&);
|
||||
/* 80303568 */ virtual void draw(f32, f32, f32, f32);
|
||||
/* 80302764 */ virtual void setBlack(JUtility::TColor);
|
||||
/* 803027EC */ virtual void setWhite(JUtility::TColor);
|
||||
/* 80302874 */ virtual void setBlackWhite(JUtility::TColor, JUtility::TColor);
|
||||
/* 80302C88 */ virtual void getBlack() const;
|
||||
/* 80302CE8 */ virtual void getWhite() const;
|
||||
/* 80302E0C */ virtual void getFrameTexture(u8, u8) const;
|
||||
/* 80302E74 */ virtual void getContentsTexture(u8) const;
|
||||
/* 8030353C */ virtual void getMaterial(J2DWindow::TMaterial&) const;
|
||||
/* 80303510 */ virtual void getFrameMaterial(u8) const;
|
||||
/* 80303534 */ virtual void getContentsMaterial() const;
|
||||
/* 80301994 */ virtual void drawContents(JGeometry::TBox2<f32> const&);
|
||||
|
||||
private:
|
||||
/* 0x148 */ J2DMaterial* mFrameMaterial[4];
|
||||
/* 0x158 */ u16 field_0x158[4];
|
||||
/* 0x160 */ J2DMaterial* mContentsMaterial;
|
||||
/* 0x164 */ u16 field_0x164;
|
||||
/* 0x166 */ u16 field_0x166;
|
||||
/* 0x168 */ u16 field_0x168[4];
|
||||
/* 0x170 */ u8 field_0x170;
|
||||
/* 0x174 */ J2DAnmVisibilityFull* mAnmVisibilityFull;
|
||||
/* 0x178 */ J2DAnmVtxColor* mAnmVtxColor;
|
||||
};
|
||||
|
||||
#endif /* J2DWINDOWEX_H */
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
#include "JSystem/J3DGraphAnimator/J3DMaterialAttach.h"
|
||||
#include "JSystem/J3DGraphAnimator/J3DModelData.h"
|
||||
#include "dolphin/gx/GXTexture.h"
|
||||
#include "dolphin/gx/GX.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
class J3DAnmBase {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#include "JSystem/J3DGraphBase/J3DStruct.h"
|
||||
#include "JSystem/J3DGraphBase/J3DTevs.h"
|
||||
#include "JSystem/J3DGraphBase/J3DTexture.h"
|
||||
#include "dolphin/gx/GXTexture.h"
|
||||
#include "dolphin/gx/GX.h"
|
||||
#include "dolphin/mtx/mtx.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#define J3DSTRUCT_H
|
||||
|
||||
#include "SSystem/SComponent/c_xyz.h"
|
||||
#include "dolphin/gx/GXTexture.h"
|
||||
#include "dolphin/gx/GX.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
class J3DLightInfo {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef J3DSYS_H
|
||||
#define J3DSYS_H
|
||||
|
||||
#include "dolphin/gx/GXTexture.h"
|
||||
#include "dolphin/gx/GX.h"
|
||||
#include "dolphin/mtx/mtx.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
@@ -11,8 +11,6 @@ enum J3DError {
|
||||
kJ3DError_Alloc = 4,
|
||||
};
|
||||
|
||||
struct _GXTexCacheSize {};
|
||||
|
||||
class J3DMtxCalc;
|
||||
class J3DModel;
|
||||
class J3DMatPacket;
|
||||
|
||||
@@ -6,33 +6,6 @@
|
||||
|
||||
enum JUTTransparency { UNK0, UNK1 };
|
||||
|
||||
enum _GXTlut {
|
||||
/* 0x00 */ GX_TLUT0,
|
||||
/* 0x01 */ GX_TLUT1,
|
||||
/* 0x02 */ GX_TLUT2,
|
||||
/* 0x03 */ GX_TLUT3,
|
||||
/* 0x04 */ GX_TLUT4,
|
||||
/* 0x05 */ GX_TLUT5,
|
||||
/* 0x06 */ GX_TLUT6,
|
||||
/* 0x07 */ GX_TLUT7,
|
||||
/* 0x08 */ GX_TLUT8,
|
||||
/* 0x09 */ GX_TLUT9,
|
||||
/* 0x0A */ GX_TLUT10,
|
||||
/* 0x0B */ GX_TLUT11,
|
||||
/* 0x0C */ GX_TLUT12,
|
||||
/* 0x0D */ GX_TLUT13,
|
||||
/* 0x0E */ GX_TLUT14,
|
||||
/* 0x0F */ GX_TLUT15,
|
||||
/* 0x10 */ GX_BIGTLUT0,
|
||||
/* 0x11 */ GX_BIGTLUT1,
|
||||
/* 0x12 */ GX_BIGTLUT2,
|
||||
/* 0x13 */ GX_BIGTLUT3,
|
||||
};
|
||||
|
||||
enum _GXTlutFmt {
|
||||
/* 0x00 */ UNK,
|
||||
};
|
||||
|
||||
struct ResTLUT {
|
||||
u8 format;
|
||||
u8 transparency;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef TCOLOR_H
|
||||
#define TCOLOR_H
|
||||
|
||||
#include "dolphin/gx/GXTexture.h"
|
||||
#include "dolphin/gx/GX.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
namespace JUtility {
|
||||
|
||||
@@ -3,4 +3,8 @@
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
extern "C" {
|
||||
int tolower(int);
|
||||
};
|
||||
|
||||
#endif /* MSL_COMMON_SRC_CTYPE_H */
|
||||
|
||||
@@ -5,6 +5,17 @@
|
||||
|
||||
extern "C" {
|
||||
void* memcpy(void*, const void*, s32);
|
||||
void* memset(void*, int, u32);
|
||||
char* strrchr(const char*, int);
|
||||
char* strchr(const char*, int);
|
||||
int strncmp(const char*, const char*, u32);
|
||||
int strcmp(const char*, const char*);
|
||||
char* strcat(char*, const char*);
|
||||
char* strncpy(char*, const char*, u32);
|
||||
char* strcpy(char*, const char*);
|
||||
u32 strlen(const char*);
|
||||
|
||||
int stricmp(const char*, const char*);
|
||||
};
|
||||
|
||||
#endif /* MSL_COMMON_SRC_STRING_H */
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include "SSystem/SComponent/c_m3d_g_cyl.h"
|
||||
#include "SSystem/SComponent/c_m3d_g_sph.h"
|
||||
#include "SSystem/SComponent/c_m3d_g_tri.h"
|
||||
#include "dolphin/gx/GXTexture.h"
|
||||
#include "dolphin/gx/GX.h"
|
||||
#include "f_op/f_op_actor.h"
|
||||
#include "global.h"
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
#include "dolphin/types.h"
|
||||
#include "f_op/f_op_actor.h"
|
||||
#include "f_op/f_op_actor_mng.h"
|
||||
#include "msl_c/string.h"
|
||||
|
||||
struct stage_vrboxcol_info_class {};
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user