Switch to Aurora headers for GX/VI

Replace GXSetArray() with GXSETARRAY() taking in size everywhere

Fix a ton of structs/enums being referred to with underscore name.
This commit is contained in:
PJB3005
2026-03-02 01:21:54 +01:00
parent fe21abb1ec
commit 883ba38bb8
74 changed files with 176 additions and 190 deletions
+6 -8
View File
@@ -5,8 +5,6 @@
#include "JSystem/J3DGraphAnimator/J3DAnimation.h"
#include "JSystem/JUtility/JUTPalette.h"
typedef struct _GXColor GXColor;
typedef struct _GXColorS10 GXColorS10;
class J2DScreen;
struct ResTIMG;
@@ -66,7 +64,7 @@ public:
}
}
virtual ~J2DAnmVtxColor() {}
virtual void getColor(u8, u16, _GXColor*) const {}
virtual void getColor(u8, u16, GXColor*) const {}
u16 getAnmTableNum(u8 param_0) const {
J3D_PANIC(342, param_0 < 2, "Error : range over.");
return mAnmTableNum[param_0];
@@ -101,7 +99,7 @@ public:
}
}
virtual ~J2DAnmVtxColorKey() {}
virtual void getColor(u8, u16, _GXColor*) const;
virtual void getColor(u8, u16, GXColor*) const;
/* 0x24 */ J3DAnmColorKeyTable* mInfoTable[2];
/* 0x2C */ s16* mRValues;
@@ -122,7 +120,7 @@ public:
}
}
virtual ~J2DAnmVtxColorFull() {}
virtual void getColor(u8, u16, _GXColor*) const;
virtual void getColor(u8, u16, GXColor*) const;
/* 0x24 */ J3DAnmColorFullTable* mInfoTable[2];
/* 0x2C */ u8* mRValues;
@@ -400,7 +398,7 @@ public:
}
virtual ~J2DAnmColor() {}
virtual void searchUpdateMaterialID(J2DScreen*);
virtual void getColor(u16, _GXColor*) const {}
virtual void getColor(u16, GXColor*) const {}
u16 getUpdateMaterialNum() const { return mUpdateMaterialNum; }
u16 getUpdateMaterialID(u16 i) const {
J3D_PANIC(224, i < mUpdateMaterialNum, "Error : range over.");
@@ -430,7 +428,7 @@ public:
mInfoTable = NULL;
}
virtual ~J2DAnmColorKey() {}
virtual void getColor(u16, _GXColor*) const;
virtual void getColor(u16, GXColor*) const;
/* 0x30 */ s16* mRValues;
/* 0x34 */ s16* mGValues;
@@ -468,7 +466,7 @@ public:
mInfoTable = NULL;
}
virtual ~J2DAnmColorFull() {}
virtual void getColor(u16, _GXColor*) const;
virtual void getColor(u16, GXColor*) const;
/* 0x30 */ u8* mRValues;
/* 0x34 */ u8* mGValues;
+6 -6
View File
@@ -69,7 +69,7 @@ class J2DTevBlock {
public:
virtual void initialize() {}
virtual void setGX() {}
virtual void loadTexture(_GXTexMapID, u32) {}
virtual void loadTexture(GXTexMapID, u32) {}
virtual u32 getType() = 0;
virtual u8 getMaxStage() = 0;
virtual void setTexNo(u32, u16) {}
@@ -124,7 +124,7 @@ public:
virtual void initialize();
virtual void setGX();
virtual void loadTexture(_GXTexMapID, u32);
virtual void loadTexture(GXTexMapID, u32);
virtual u32 getType() { return 'TVB1'; }
virtual u8 getMaxStage() { return 1; }
virtual void setTexNo(u32 index, u16 texNo) {
@@ -264,7 +264,7 @@ public:
virtual void initialize();
virtual void setGX();
virtual void loadTexture(_GXTexMapID, u32);
virtual void loadTexture(GXTexMapID, u32);
virtual u32 getType() { return 'TVB2'; }
virtual u8 getMaxStage() { return 2; }
virtual void setTexNo(u32 index, u16 texNo) {
@@ -406,7 +406,7 @@ public:
virtual void initialize();
virtual void setGX();
virtual void loadTexture(_GXTexMapID, u32);
virtual void loadTexture(GXTexMapID, u32);
virtual u32 getType() { return 'TVB4'; }
virtual u8 getMaxStage() { return 4; }
virtual void setTexNo(u32 index, u16 texNo) {
@@ -548,7 +548,7 @@ public:
virtual void initialize();
virtual void setGX();
virtual void loadTexture(_GXTexMapID, u32);
virtual void loadTexture(GXTexMapID, u32);
virtual u32 getType() { return 'TVB8'; }
virtual u8 getMaxStage() { return 8; }
virtual void setTexNo(u32 index, u16 texNo) {
@@ -691,7 +691,7 @@ public:
virtual void initialize();
virtual void setGX();
virtual void loadTexture(_GXTexMapID, u32);
virtual void loadTexture(GXTexMapID, u32);
virtual u32 getType() { return 'TV16'; }
virtual u8 getMaxStage() { return 16; }
virtual void setTexNo(u32 index, u16 texNo) {
@@ -40,8 +40,6 @@ struct J2DMaterialBlock {
BE(u32) field_0x64;
};
typedef struct _GXColor GXColor;
typedef struct _GXColorS10 GXColorS10;
struct J2DAlphaCompInfo;
struct J2DBlendInfo;
struct J2DColorChanInfo;
+1 -1
View File
@@ -96,7 +96,7 @@ public:
setCullBack(mode);
}
/* vt 0x20 */ virtual void setCullBack(_GXCullMode cmode);
/* vt 0x20 */ virtual void setCullBack(GXCullMode cmode);
/* vt 0x24 */ virtual void setAlpha(u8 alpha) {
mAlpha = alpha;
};
+2 -2
View File
@@ -130,12 +130,12 @@ public:
JGeometry::TBox2<f32>(param_4, param_5, param_4 + param_6, param_5 + param_7));
}
virtual void drawOut(JGeometry::TBox2<f32> const&, JGeometry::TBox2<f32> const&);
virtual void load(_GXTexMapID param_0, u8 param_1) {
virtual void load(GXTexMapID param_0, u8 param_1) {
if (param_1 < mTextureNum && param_1 < 2 && mTexture[param_1] != NULL) {
mTexture[param_1]->load(param_0);
}
}
virtual void load(u8 param_0) { load((_GXTexMapID)param_0, param_0); }
virtual void load(u8 param_0) { load((GXTexMapID)param_0, param_0); }
virtual void setBlendRatio(f32 param_0, f32 param_1) {
setBlendColorRatio(param_0, param_1);
setBlendAlphaRatio(param_0, param_1);
+2 -2
View File
@@ -39,7 +39,7 @@ public:
virtual ~J2DPictureEx();
virtual void setCullBack(bool);
virtual void setCullBack(_GXCullMode);
virtual void setCullBack(GXCullMode);
virtual void setAlpha(u8);
virtual void drawSelf(f32, f32, f32 (*)[3][4]);
virtual bool isUsed(ResTIMG const*);
@@ -80,7 +80,7 @@ public:
virtual void drawOut(f32, f32, f32, f32, f32, f32);
virtual void drawOut(f32, f32, f32, f32, f32, f32, f32, f32);
virtual void drawOut(JGeometry::TBox2<f32> const&, JGeometry::TBox2<f32> const&);
virtual void load(_GXTexMapID, u8);
virtual void load(GXTexMapID, u8);
virtual void load(u8);
virtual void setBlendColorRatio(f32, f32);
virtual void setBlendAlphaRatio(f32, f32);
+1 -1
View File
@@ -26,7 +26,7 @@ public:
virtual ~J2DTextBoxEx();
virtual void setCullBack(bool);
virtual void setCullBack(_GXCullMode);
virtual void setCullBack(GXCullMode);
virtual void setAlpha(u8);
virtual void drawSelf(f32, f32, f32 (*)[3][4]);
virtual bool isUsed(ResTIMG const*);
+1 -1
View File
@@ -31,7 +31,7 @@ public:
virtual ~J2DWindowEx();
virtual void setCullBack(bool);
virtual void setCullBack(_GXCullMode);
virtual void setCullBack(GXCullMode);
virtual void setAlpha(u8);
virtual void drawSelf(f32, f32, f32 (*)[3][4]);
virtual bool isUsed(ResTIMG const*);
@@ -53,9 +53,6 @@ struct J3DAnmTransform_ANK1 {
/* 0x20 */ BE(u32) translation_data_offset;
};
typedef struct _GXColor GXColor;
typedef struct _GXColorS10 GXColorS10;
/**
* @ingroup jsystem-j3d
*
@@ -837,8 +834,8 @@ public:
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*);
+3 -3
View File
@@ -81,8 +81,8 @@ void J3DGDSetTexLookupMode(GXTexMapID, GXTexWrapMode, GXTexWrapMode, GXTexFilter
void J3DGDSetTexImgAttr(GXTexMapID, u16, u16, GXTexFmt);
void J3DGDSetTexImgPtr(GXTexMapID, void*);
void J3DGDSetTexImgPtrRaw(GXTexMapID, u32);
void J3DGDSetTexTlut(GXTexMapID, u32, _GXTlutFmt);
void J3DGDLoadTlut(void*, u32, _GXTlutSize);
void J3DGDSetTexTlut(GXTexMapID, u32, GXTlutFmt);
void J3DGDLoadTlut(void*, u32, GXTlutSize);
void J3DGDSetIndTexMtx(GXIndTexMtxID, f32 (*)[3], s8);
void J3DGDSetIndTexCoordScale(GXIndTexStageID, GXIndTexScale, GXIndTexScale, GXIndTexScale,
GXIndTexScale);
@@ -93,7 +93,7 @@ void J3DGDSetTevOrder(GXTevStageID, GXTexCoordID, GXTexMapID, GXChannelID, GXTex
void J3DGDSetTevKColor(GXTevKColorID, GXColor);
void J3DGDSetTevColorS10(GXTevRegID, GXColorS10);
void J3DGDSetFog(GXFogType, f32, f32, f32, f32, GXColor);
void J3DGDSetFogRangeAdj(u8, u16, _GXFogAdjTable*);
void J3DGDSetFogRangeAdj(GXBool, u16, _GXFogAdjTable*);
inline void J3DGDSetNumChans(u8 numChans) {
J3DGDWriteXFCmd(0x1009, numChans);
+2 -2
View File
@@ -125,8 +125,8 @@ public:
static const int kVcdVatDLSize = 0xC0;
void initialize();
void addTexMtxIndexInDL(_GXAttr, u32);
void addTexMtxIndexInVcd(_GXAttr);
void addTexMtxIndexInDL(GXAttr, u32);
void addTexMtxIndexInVcd(GXAttr);
void calcNBTScale(Vec const&, f32 (*)[3][3], f32 (*)[3][3]);
u16 countBumpMtxNum() const;
void loadVtxArray() const;
+2 -2
View File
@@ -145,13 +145,13 @@ struct J3DSys {
void setModelDrawMtx(Mtx* pMtxArr) {
J3D_ASSERT_NULLPTR(230, pMtxArr);
mModelDrawMtx = pMtxArr;
GXSetArray(GX_POS_MTX_ARRAY, mModelDrawMtx, sizeof(*mModelDrawMtx));
GXSETARRAY(GX_POS_MTX_ARRAY, mModelDrawMtx, sizeof(*mModelDrawMtx), sizeof(*mModelDrawMtx));
}
void setModelNrmMtx(Mtx33* pMtxArr) {
J3D_ASSERT_NULLPTR(241, pMtxArr);
mModelNrmMtx = pMtxArr;
GXSetArray(GX_NRM_MTX_ARRAY, mModelNrmMtx, sizeof(*mModelNrmMtx));
GXSETARRAY(GX_POS_MTX_ARRAY, mModelNrmMtx, sizeof(*mModelNrmMtx), sizeof(*mModelNrmMtx));
}
void* getVtxPos() { return mVtxPos; }
-1
View File
@@ -5,7 +5,6 @@
#include <dolphin/mtx.h>
#include "dusk/endian_gx.hpp"
typedef struct _GXColor GXColor;
class J3DModel;
class J3DAnmVtxColor;
class J3DVertexBuffer;
+3 -5
View File
@@ -7,8 +7,6 @@
#include "JSystem/JUtility/JUTXfb.h"
#include <dolphin/os.h>
typedef struct _GXColor GXColor;
typedef struct _GXRenderModeObj GXRenderModeObj;
class JKRHeap;
typedef void (*JFWDisplayUnkFunc)(void);
@@ -49,7 +47,7 @@ public:
void ctor_subroutine(bool);
JFWDisplay(JKRHeap*, JUTXfb::EXfbNumber, bool);
static JFWDisplay* createManager(_GXRenderModeObj const*, JKRHeap*,
static JFWDisplay* createManager(GXRenderModeObj const*, JKRHeap*,
JUTXfb::EXfbNumber, bool);
void prepareCopyDisp();
void drawendXfb_single();
@@ -61,9 +59,9 @@ public:
void waitBlanking(int);
void threadSleep(s64);
void clearEfb_init();
void clearEfb(int, int, int, int, _GXColor);
void clearEfb(int, int, int, int, GXColor);
void clearEfb();
void clearEfb(_GXColor);
void clearEfb(GXColor);
void calcCombinationRatio();
virtual void beginRender();
-1
View File
@@ -4,7 +4,6 @@
#include <dolphin/types.h>
#include "JSystem/JUtility/JUTAssert.h"
typedef struct _GXRenderModeObj GXRenderModeObj;
class JKRExpHeap;
class JKRThread;
class JUTConsole;
+1 -1
View File
@@ -142,7 +142,7 @@ public:
void setGlobalAlpha(u8 alpha) { mGlobalPrmClr.a = alpha; }
u8 getGlobalAlpha() const { return mGlobalPrmClr.a; }
void getGlobalPrmColor(GXColor& color) { color = mGlobalPrmClr; }
void getGlobalPrmColor(_GXColor* color) const { *color = mGlobalPrmClr; }
void getGlobalPrmColor(GXColor* color) const { *color = mGlobalPrmClr; }
void setGlobalPrmColor(u8 r, u8 g, u8 b) { mGlobalPrmClr.r = r; mGlobalPrmClr.g = g; mGlobalPrmClr.b = b; }
void setGlobalEnvColor(u8 r, u8 g, u8 b) { mGlobalEnvClr.r = r; mGlobalEnvClr.g = g; mGlobalEnvClr.b = b; }
void setVolumeSize(u16 size) { mVolumeSize = size; }
@@ -6,8 +6,6 @@
#include <limits>
#include <cmath>
typedef struct _GXColor GXColor;
namespace JStudio {
namespace data {
enum TEOperationData {
+1 -1
View File
@@ -55,7 +55,7 @@ public:
void prepend(JUTCacheFont::TGlyphCacheInfo*);
virtual ~JUTCacheFont();
virtual void loadImage(int, _GXTexMapID);
virtual void loadImage(int, GXTexMapID);
virtual void setBlock();
void setPagingType(EPagingType type) { mPagingType = type; }
+2 -3
View File
@@ -8,7 +8,6 @@
#include <dolphin/os.h>
#include "global.h"
typedef struct _GXRenderModeObj GXRenderModeObj;
typedef struct OSContext OSContext;
class JUTDirectPrint;
@@ -18,10 +17,10 @@ class JUTDirectPrint;
*/
class JUTExternalFB {
public:
JUTExternalFB(_GXRenderModeObj*, GXGamma, void*, u32);
JUTExternalFB(GXRenderModeObj*, GXGamma, void*, u32);
private:
/* 0x00 */ _GXRenderModeObj* mRenderMode;
/* 0x00 */ GXRenderModeObj* mRenderMode;
/* 0x04 */ u32 mSize;
/* 0x08 */ u32 field_0x08;
/* 0x0C */ u16 field_0x0C;
+2 -2
View File
@@ -38,7 +38,7 @@ public:
virtual int getFontType() const;
virtual ResFONT* getResFont() const;
virtual bool isLeadByte(int) const;
virtual void loadImage(int, _GXTexMapID);
virtual void loadImage(int, GXTexMapID);
virtual void setBlock();
JUTResFont(ResFONT const*, JKRHeap*);
@@ -48,7 +48,7 @@ public:
bool initiate(ResFONT const*, JKRHeap*);
bool protected_initiate(ResFONT const*, JKRHeap*);
void countBlock();
void loadFont(int, _GXTexMapID, JUTFont::TWidth*);
void loadFont(int, GXTexMapID, JUTFont::TWidth*);
int getFontCode(int) const;
int convertSjis(int, BE(u16)*) const;
+2 -1
View File
@@ -4,6 +4,7 @@
#include <dolphin/gx.h>
#include <dolphin/os.h>
#include <dolphin/os.h>
#include <dolphin/vi.h>
typedef u8 (*Pattern)[2];
@@ -54,7 +55,7 @@ private:
static OSTick sVideoInterval;
private:
/* 0x04 */ _GXRenderModeObj* mRenderObj;
/* 0x04 */ GXRenderModeObj* mRenderObj;
/* 0x08 */ u32 field_0x8;
/* 0x0C */ u32 mRetraceCount;
/* 0x10 */ u32 field_0x10;
+1 -2
View File
@@ -3,7 +3,6 @@
#include "JSystem/JUtility/JUTVideo.h"
typedef struct _GXRenderModeObj GXRenderModeObj;
class JKRHeap;
/**
@@ -21,7 +20,7 @@ public:
void clearIndex();
void common_init(int);
JUTXfb(_GXRenderModeObj const*, JKRHeap*, JUTXfb::EXfbNumber);
JUTXfb(GXRenderModeObj const*, JKRHeap*, JUTXfb::EXfbNumber);
~JUTXfb();
void delXfb(int);
static JUTXfb* createManager(JKRHeap*, JUTXfb::EXfbNumber);
+2 -2
View File
@@ -8,8 +8,8 @@
#include "SSystem/SComponent/c_m3d_g_tri.h"
#include "SSystem/SComponent/c_m3d_g_vtx.h"
#include "f_pc/f_pc_manager.h"
#include <dolphin/gx/GXStruct.h>
typedef struct _GXColor GXColor;
class fopAc_ac_c;
enum CcG_Tg_HitMark {
@@ -447,7 +447,7 @@ public:
virtual cCcD_GObjInf* GetGObjInf() { return NULL; }
virtual cCcD_ShapeAttr const* GetShapeAttr() const { return NULL; }
virtual cCcD_ShapeAttr* GetShapeAttr() { return NULL; }
virtual void Draw(_GXColor const&) {}
virtual void Draw(GXColor const&) {}
void ct();
void Set(cCcD_SrcObj const&);
fopAc_ac_c* GetAc();
+1 -1
View File
@@ -657,7 +657,7 @@ public:
int loadRes(s8 const*, char const**);
void deleteRes(s8 const*, char const**);
int execute();
int draw(BOOL, BOOL, f32, _GXColorS10*, f32, BOOL, BOOL, BOOL);
int draw(BOOL, BOOL, f32, GXColorS10*, f32, BOOL, BOOL, BOOL);
void setEnvTevColor();
void setRoomNo();
int checkEndAnm(f32);
+1 -1
View File
@@ -304,7 +304,7 @@ public:
initialize();
}
BOOL execute();
int draw(BOOL, BOOL, f32, _GXColorS10*, BOOL);
int draw(BOOL, BOOL, f32, GXColorS10*, BOOL);
static void tgHitCallBack(fopAc_ac_c*, dCcD_GObjInf*, fopAc_ac_c*,
dCcD_GObjInf*);
static void* srchAttnActor1(void*, void*);
+1 -1
View File
@@ -60,7 +60,7 @@ public:
int Delete();
int Execute();
int Draw();
int draw(int, int, f32, _GXColorS10*, int);
int draw(int, int, f32, GXColorS10*, int);
int ctrlJoint(J3DJoint*, J3DModel*);
static int createHeapCallBack(fopAc_ac_c*);
static int ctrlJointCallBack(J3DJoint*, int);
+1 -1
View File
@@ -62,7 +62,7 @@ public:
int Delete();
int Execute();
int Draw();
int draw(BOOL, BOOL, f32, _GXColorS10*, BOOL);
int draw(BOOL, BOOL, f32, GXColorS10*, BOOL);
int ctrlJoint(J3DJoint*, J3DModel*);
static int createHeapCallBack(fopAc_ac_c*);
static int ctrlJointCallBack(J3DJoint*, int);
+1 -1
View File
@@ -47,7 +47,7 @@ public:
mpBrkAnm->entry(model->getModelData());
mpMorfSO->entryDL();
if (field_0x9c0 == 0) {
_GXTexObj* texObj = dDlst_shadowControl_c::getSimpleTex();
GXTexObj* texObj = dDlst_shadowControl_c::getSimpleTex();
dComIfGd_setSimpleShadow(&current.pos, mObjAcch.GetGroundH(), 15.0f, mObjAcch.m_gnd, 0, -0.6f, texObj);
}
}
+5 -5
View File
@@ -1237,10 +1237,10 @@ int dComIfG_TimerDeleteRequest(int i_mode);
int dComLbG_PhaseHandler(request_of_phase_process_class*, request_of_phase_process_fn*, void*);
int dComIfGd_setSimpleShadow(cXyz* i_pos, f32 param_1, f32 param_2, cBgS_PolyInfo& param_3, s16 i_angle,
f32 param_5, _GXTexObj* i_tex);
f32 param_5, GXTexObj* i_tex);
int dComIfGd_setShadow(u32 param_0, s8 param_1, J3DModel* param_2, cXyz* param_3, f32 param_4,
f32 param_5, f32 param_6, f32 param_7, cBgS_PolyInfo& param_8,
dKy_tevstr_c* param_9, s16 param_10, f32 param_11, _GXTexObj* param_12);
dKy_tevstr_c* param_9, s16 param_10, f32 param_11, GXTexObj* param_12);
inline dSv_info_c* dComIfGs_getSaveInfo() {
return &g_dComIfG_gameInfo.info;
@@ -3192,8 +3192,8 @@ inline JPABaseEmitter* dComIfGp_particle_setPolyColor(u16 param_1, cBgS_PolyInfo
param_1, param_2, param_3, param_4, param_5, param_6, param_7, param_8, param_9, param_10);
}
inline void dComIfGp_particle_setSimple(u16 param_0, cXyz* i_pos, u8 param_2, _GXColor& param_3,
_GXColor& param_4, int param_5, float param_6) {
inline void dComIfGp_particle_setSimple(u16 param_0, cXyz* i_pos, u8 param_2, GXColor& param_3,
GXColor& param_4, int param_5, float param_6) {
g_dComIfG_gameInfo.play.getParticle()->setSimple(param_0, i_pos, 0, param_2, param_3, param_4,
param_5, param_6);
}
@@ -4437,7 +4437,7 @@ inline int dComIfGd_setRealShadow(u32 param_0, s8 param_1, J3DModel* param_2, cX
}
inline int dComIfGd_setSimpleShadow(cXyz* pos, f32 param_1, f32 param_2, cXyz* param_3, s16 angle,
f32 param_5, _GXTexObj* tex) {
f32 param_5, GXTexObj* tex) {
return g_dComIfG_gameInfo.drawlist.setSimpleShadow(pos, param_1, param_2, param_3, angle,
param_5, tex);
}
+6 -6
View File
@@ -95,7 +95,7 @@ public:
class dDlst_effectLine_c : public dDlst_base_c {
public:
virtual void draw();
void update(cXyz&, _GXColor&, u16, u16, u16, u16, f32, f32, f32, f32);
void update(cXyz&, GXColor&, u16, u16, u16, u16, f32, f32, f32, f32);
f32 getRndValue(f32 param_0, f32 param_1) { return mRnd.getValue(param_0, param_1); }
f32 getRndFX(f32 param_0) { return mRnd.getFX(param_0); }
@@ -199,11 +199,11 @@ public:
class dDlst_shadowSimple_c {
public:
void draw();
void set(cXyz*, f32, f32, cXyz*, s16, f32, _GXTexObj*);
void set(cXyz*, f32, f32, cXyz*, s16, f32, GXTexObj*);
dDlst_shadowSimple_c();
/* 0x00 */ u8 mAlpha;
/* 0x04 */ _GXTexObj* mpTexObj;
/* 0x04 */ GXTexObj* mpTexObj;
/* 0x08 */ Mtx mVolumeMtx;
/* 0x38 */ Mtx mMtx;
}; // Size: 0x68
@@ -289,7 +289,7 @@ public:
void draw(f32 (*)[4]);
int setReal(u32, s8, J3DModel*, cXyz*, f32, f32, dKy_tevstr_c*);
bool addReal(u32, J3DModel*);
int setSimple(cXyz*, f32, f32, cXyz*, s16, f32, _GXTexObj*);
int setSimple(cXyz*, f32, f32, cXyz*, s16, f32, GXTexObj*);
static void setSimpleTex(ResTIMG const*);
static GXTexObj* getSimpleTex() { return &mSimpleTexObj; }
@@ -305,7 +305,7 @@ private:
/* 0x0000C */ dDlst_shadowSimple_c mSimple[128];
/* 0x0340C */ int mNextID;
/* 0x03410 */ dDlst_shadowReal_c mReal[8];
/* 0x15EB0 */ _GXTexObj field_0x15eb0[2];
/* 0x15EB0 */ GXTexObj field_0x15eb0[2];
/* 0x15EF0 */ void* field_0x15ef0[2];
};
@@ -442,7 +442,7 @@ public:
}
int setSimpleShadow(cXyz* param_0, f32 param_1, f32 param_2, cXyz* param_3, s16 param_4,
f32 param_5, _GXTexObj* param_6) {
f32 param_5, GXTexObj* param_6) {
return mShadowControl.setSimple(param_0, param_1, param_2, param_3, param_4, param_5,
param_6);
}
+3 -4
View File
@@ -4,17 +4,16 @@
#include <dolphin/mtx.h>
struct cXyz;
struct _GXColor;
void dKyr_drawSun(Mtx param_0, cXyz* param_1, _GXColor& param_2, u8** param_3);
void dKyr_drawLenzflare(Mtx param_0, cXyz* param_1, _GXColor& param_2, u8** param_3);
void dKyr_drawSun(Mtx param_0, cXyz* param_1, GXColor& param_2, u8** param_3);
void dKyr_drawLenzflare(Mtx param_0, cXyz* param_1, GXColor& param_2, u8** param_3);
void dKyr_drawSibuki(Mtx param_0, u8** param_1);
void dKyr_drawRain(Mtx param_0, u8** param_1);
void dKyr_drawSnow(Mtx param_0, u8** param_1);
void dKyr_drawStar(Mtx param_0, u8** param_1);
void drawCloudShadow(Mtx param_0, u8** param_1);
void dKyr_drawHousi(Mtx param_0, u8** param_1);
void drawVrkumo(Mtx param_0, _GXColor& param_1, u8** param_2);
void drawVrkumo(Mtx param_0, GXColor& param_1, u8** param_2);
void dKyr_odour_draw(Mtx param_0, u8** param_1);
void dKyr_mud_draw(Mtx param_0, u8** param_1);
void dKyr_evil_draw(Mtx param_0, u8** param_1);
+1 -1
View File
@@ -9,7 +9,7 @@ struct dMpath_RGB5A3_s {
};
namespace dMpath_ColorCnv_n {
void convertRGB5A3_To_GXColor(_GXColor&, const dMpath_RGB5A3_s&);
void convertRGB5A3_To_GXColor(GXColor&, const dMpath_RGB5A3_s&);
}
struct dMpath_RGB5A3_palDt_s {
+7 -7
View File
@@ -37,7 +37,7 @@ public:
dPa_simpleEcallBack();
JPABaseEmitter* create(JPAEmitterManager*, u16, u8);
JPABaseEmitter* createEmitter(JPAEmitterManager*);
u32 set(cXyz const*, dKy_tevstr_c const*, u8, _GXColor const&, _GXColor const&,
u32 set(cXyz const*, dKy_tevstr_c const*, u8, GXColor const&, GXColor const&,
int, f32);
virtual ~dPa_simpleEcallBack() {}
@@ -361,20 +361,20 @@ public:
void setWaterRipple(u32*, cBgS_PolyInfo&, cXyz const*, f32, dKy_tevstr_c const*,
cXyz const*, s8);
JPABaseEmitter* set(u8, u16, cXyz const*, dKy_tevstr_c const*, csXyz const*, cXyz const*, u8,
dPa_levelEcallBack*, s8, _GXColor const*, _GXColor const*, cXyz const*,
dPa_levelEcallBack*, s8, GXColor const*, GXColor const*, cXyz const*,
f32);
u32 set(u32, u8, u16, cXyz const*, dKy_tevstr_c const*, csXyz const*,
cXyz const*, u8, dPa_levelEcallBack*, s8, _GXColor const*,
_GXColor const*, cXyz const*, f32);
static s32 getPolyColor(cBgS_PolyInfo&, int, _GXColor*, _GXColor*, u8*, f32*);
cXyz const*, u8, dPa_levelEcallBack*, s8, GXColor const*,
GXColor const*, cXyz const*, f32);
static s32 getPolyColor(cBgS_PolyInfo&, int, GXColor*, GXColor*, u8*, f32*);
u32 setPoly(u32, u16, cBgS_PolyInfo&, cXyz const*, dKy_tevstr_c const*,
csXyz const*, cXyz const*, int, dPa_levelEcallBack*, s8,
cXyz const*);
JPABaseEmitter* setPoly(u16, cBgS_PolyInfo&, cXyz const*, dKy_tevstr_c const*, csXyz const*,
cXyz const*, int, dPa_levelEcallBack*, s8, cXyz const*);
bool newSimple(u16, u8, u32*);
u32 setSimple(u16, cXyz const*, dKy_tevstr_c const*, u8, _GXColor const&,
_GXColor const&, int, f32);
u32 setSimple(u16, cXyz const*, dKy_tevstr_c const*, u8, GXColor const&,
GXColor const&, int, f32);
dPa_simpleEcallBack* getSimple(u16);
u32 setStopContinue(u32);
u32 setSimpleFoot(u32, u32*, cBgS_PolyInfo&, cXyz const*, dKy_tevstr_c const*,
+2 -2
View File
@@ -548,8 +548,8 @@ public:
class mDoExt_3DlineMat0_c : public mDoExt_3DlineMat_c {
public:
int init(u16, u16, int);
void update(int, f32, _GXColor&, u16, dKy_tevstr_c*);
void update(int, _GXColor&, dKy_tevstr_c*);
void update(int, f32, GXColor&, u16, dKy_tevstr_c*);
void update(int, GXColor&, dKy_tevstr_c*);
virtual int getMaterialID() { return 0; }
virtual void setMaterial();
+4 -4
View File
@@ -76,11 +76,11 @@ public:
static void create();
static void beginRender();
static void fadeOut(f32);
static void fadeOut(f32, _GXColor&);
static void fadeIn(f32 fadeSpeed, _GXColor& fadeColor) {
static void fadeOut(f32, GXColor&);
static void fadeIn(f32 fadeSpeed, GXColor& fadeColor) {
fadeOut(-fadeSpeed, fadeColor);
}
static void fadeOut_f(f32, _GXColor&);
static void fadeOut_f(f32, GXColor&);
static void onBlure(const Mtx);
static void onBlure();
static void calcFade();
@@ -106,7 +106,7 @@ public:
static void endFrame() { JFWDisplay::getManager()->endFrame(); }
static void offFade() { mFade = 0; }
static u8 isFade() { return mFade; }
static void fadeIn_f(f32 i_fadeSpeed, _GXColor& i_fadeColor) { fadeOut_f(-i_fadeSpeed, i_fadeColor); }
static void fadeIn_f(f32 i_fadeSpeed, GXColor& i_fadeColor) { fadeOut_f(-i_fadeSpeed, i_fadeColor); }
static void offBlure() { mBlureFlag = false; }
static u8 isBlure() { return mBlureFlag; }
static void setBlureRate(u8 i_rate) { mBlureRate = i_rate; }
+1 -2
View File
@@ -2,9 +2,8 @@
#define M_DO_M_DO_LIB_H
#include "JSystem/J3DU/J3DUClipper.h"
#include <dolphin/gx/GXStruct.h>
typedef struct _GXTexObj GXTexObj;
typedef struct _GXTlutObj GXTlutObj;
typedef struct Vec Vec;
struct ResTIMG;