Skip to content

Commit

Permalink
Use _GX name typedefs
Browse files Browse the repository at this point in the history
  • Loading branch information
LagoLunatic committed Jan 15, 2025
1 parent d2426c5 commit e620f93
Show file tree
Hide file tree
Showing 21 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion include/JSystem/J3DGraphBase/J3DGD.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ inline void J3DGXCmd1f32ptr(f32* value) {
GXFIFO.u32 = *(u32*)value;
}

void J3DGDSetGenMode(u8 texGenNum, u8 colorChanNum, u8 tevStageNum, u8 IndTexStageNum, _GXCullMode cullMode);
void J3DGDSetGenMode(u8 texGenNum, u8 colorChanNum, u8 tevStageNum, u8 IndTexStageNum, GXCullMode cullMode);
void J3DGDSetGenMode_3Param(u8 texGenNum, u8 tevStageNum, u8 indTexStageNum);
void J3DGDSetIndTexStageNum(u32);
void J3DGDSetLightAttn(GXLightID, f32, f32, f32, f32, f32, f32);
Expand Down
2 changes: 1 addition & 1 deletion include/JSystem/J3DGraphBase/J3DTexture.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class J3DTexture {
J3DTexture(u16 num, ResTIMG* res) : mNum(num), mpRes(res) {}
virtual ~J3DTexture() {}

void loadGX(u16, _GXTexMapID) const;
void loadGX(u16, GXTexMapID) const;
void entryNum(u16);
void addResTIMG(u16, ResTIMG const*);

Expand Down
6 changes: 3 additions & 3 deletions include/JSystem/JFramework/JFWDisplay.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ class JFWDisplay {
/* 0x1 */ Async = 1,
};

void ctor_subroutine(const _GXRenderModeObj*, bool enableAlpha);
JFWDisplay(const _GXRenderModeObj*, JKRHeap*, JUTXfb::EXfbNumber, bool);
void ctor_subroutine(const GXRenderModeObj*, bool enableAlpha);
JFWDisplay(const GXRenderModeObj*, JKRHeap*, JUTXfb::EXfbNumber, bool);
static JFWDisplay* createManager(JKRHeap*, JUTXfb::EXfbNumber, bool);
void prepareCopyDisp();
void drawendXfb_single();
Expand Down Expand Up @@ -103,7 +103,7 @@ class JFWDisplay {

private:
/* 0x04 */ JUTFader* mpFader;
/* 0x08 */ const _GXRenderModeObj* mpRenderMode;
/* 0x08 */ const GXRenderModeObj* mpRenderMode;
/* 0x0C */ JUtility::TColor mClearColor;
/* 0x10 */ u32 mZClear;
/* 0x14 */ JUTXfb* mXfbManager;
Expand Down
2 changes: 1 addition & 1 deletion include/JSystem/JParticle/JPADraw.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class JPADraw {
void calcChild(JPABaseParticle*);
void initParticle(JPABaseParticle*);
void initChild(JPABaseParticle*, JPABaseParticle*);
bool loadTexture(u8, _GXTexMapID);
bool loadTexture(u8, GXTexMapID);
void setDrawExecVisitorsBeforeCB(const JPADraw::JPADrawVisitorDefFlags&);
void setDrawExecVisitorsAfterCB(const JPADraw::JPADrawVisitorDefFlags&);
void setDrawCalcVisitors(const JPADraw::JPADrawVisitorDefFlags&);
Expand Down
2 changes: 1 addition & 1 deletion include/JSystem/JUtility/JUTCacheFont.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class JUTCacheFont : public JUTResFont {
void prepend(TGlyphCacheInfo*);

virtual ~JUTCacheFont();
virtual void loadImage(int, _GXTexMapID);
virtual void loadImage(int, GXTexMapID);
virtual void setBlock();

void setPagingType(EPagingType type) { mPagingType = type; }
Expand Down
2 changes: 1 addition & 1 deletion include/JSystem/JUtility/JUTException.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class JUTExternalFB {
JUTExternalFB(GXRenderModeObj*, GXGamma, void*, u32);

private:
/* 0x00 */ _GXRenderModeObj* mRenderMode;
/* 0x00 */ GXRenderModeObj* mRenderMode;
/* 0x04 */ u32 mSize;
/* 0x08 */ u32 field_0x08;
/* 0x0C */ u16 field_0x0C;
Expand Down
6 changes: 3 additions & 3 deletions include/JSystem/JUtility/JUTPalette.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ struct ResTLUT {

class JUTPalette {
public:
JUTPalette(GXTlut p1, _GXTlutFmt p2, JUTTransparency p3, u16 p4, void* p5) {
JUTPalette(GXTlut p1, GXTlutFmt p2, JUTTransparency p3, u16 p4, void* p5) {
this->storeTLUT(p1, p2, p3, p4, p5);
}

JUTPalette(GXTlut tlutNo, ResTLUT* p_tlutRes) { storeTLUT(tlutNo, p_tlutRes); }

void storeTLUT(GXTlut, ResTLUT*);
void storeTLUT(GXTlut, _GXTlutFmt, JUTTransparency, u16, void*);
void storeTLUT(GXTlut, GXTlutFmt, JUTTransparency, u16, void*);
bool load();

u8 getTlutName() const { return mTlutName; }
Expand All @@ -31,7 +31,7 @@ class JUTPalette {
ResTLUT* getColorTable() const { return mColorTable; }

private:
/* 0x00 */ _GXTlutObj mTlutObj;
/* 0x00 */ GXTlutObj mTlutObj;
/* 0x0C */ u8 mTlutName;
/* 0x0D */ u8 mFormat;
/* 0x10 */ ResTLUT* mColorTable;
Expand Down
6 changes: 3 additions & 3 deletions include/JSystem/JUtility/JUTResFont.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class JUTResFont : public JUTFont {
virtual int getCellWidth() const;
virtual s32 getCellHeight() const;
virtual bool isLeadByte(int) const;
virtual void loadImage(int, _GXTexMapID);
virtual void loadImage(int, GXTexMapID);
virtual void setBlock();

JUTResFont(ResFONT const*, JKRHeap*);
Expand All @@ -35,7 +35,7 @@ class JUTResFont : public JUTFont {
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, u16*) const;

Expand All @@ -49,7 +49,7 @@ class JUTResFont : public JUTFont {

/* 0x1C */ int mWidth;
/* 0x20 */ int mHeight;
/* 0x24 */ _GXTexObj mTexObj;
/* 0x24 */ GXTexObj mTexObj;
/* 0x44 */ int mTexPageIdx;
/* 0x48 */ const ResFONT* mResFont;
/* 0x4C */ ResFONT::INF1* mInfoBlock;
Expand Down
2 changes: 1 addition & 1 deletion include/JSystem/JUtility/JUTTexture.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class JUTTexture {
}

~JUTTexture();
void storeTIMG(ResTIMG const*, JUTPalette*, _GXTlut);
void storeTIMG(ResTIMG const*, JUTPalette*, GXTlut);
void storeTIMG(ResTIMG const*, u8);
void storeTIMG(ResTIMG const*, JUTPalette*);
void attachPalette(JUTPalette*);
Expand Down
2 changes: 1 addition & 1 deletion include/JSystem/JUtility/JUTVideo.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class JUTVideo {
static OSTick sVideoInterval;

private:
/* 0x04 */ _GXRenderModeObj* mRenderObj;
/* 0x04 */ GXRenderModeObj* mRenderObj;
/* 0x08 */ u32 field_0x8;
/* 0x0C */ u32 mRetraceCount;
/* 0x10 */ u32 field_0x10;
Expand Down
2 changes: 1 addition & 1 deletion include/JSystem/JUtility/JUTXfb.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class JUTXfb {
JUTXfb(GXRenderModeObj const*, JKRHeap*, JUTXfb::EXfbNumber);
~JUTXfb();
void delXfb(int);
static JUTXfb* createManager(const _GXRenderModeObj*, JKRHeap*, JUTXfb::EXfbNumber);
static JUTXfb* createManager(const GXRenderModeObj*, JKRHeap*, JUTXfb::EXfbNumber);
static void destroyManager();
void initiate(u16, u16, JKRHeap*, JUTXfb::EXfbNumber);

Expand Down
2 changes: 1 addition & 1 deletion src/JSystem/J3DGraphLoader/J3DModelLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ void J3DModelLoader::readVertex(const J3DVertexBlock* i_block) {
JSUConvertOffsetToPtr<void>(i_block, i_block->mpVtxTexCoordArray[i]);
}

_GXCompType nrm_type = getFmtType(vertex_data.mVtxAttrFmtList, GX_VA_NRM);
GXCompType nrm_type = getFmtType(vertex_data.mVtxAttrFmtList, GX_VA_NRM);
u32 nrm_size = nrm_type == GX_F32 ? 12 : 6;

void* nrm_end = NULL;
Expand Down
6 changes: 3 additions & 3 deletions src/JSystem/JFramework/JFWDisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ u8 clear_z_TX[64] ALIGN_DECL(32) = {


/* 802551C0-8025527C .text ctor_subroutine__10JFWDisplayFPC16_GXRenderModeObjb */
void JFWDisplay::ctor_subroutine(const _GXRenderModeObj* mode, bool enableAlpha) {
void JFWDisplay::ctor_subroutine(const GXRenderModeObj* mode, bool enableAlpha) {
mEnableAlpha = enableAlpha;
mClamp = 3;

Expand Down Expand Up @@ -61,7 +61,7 @@ void JFWDisplay::ctor_subroutine(const _GXRenderModeObj* mode, bool enableAlpha)
}

/* 8025527C-802552EC .text __ct__10JFWDisplayFPC16_GXRenderModeObjP7JKRHeapQ26JUTXfb10EXfbNumberb */
JFWDisplay::JFWDisplay(const _GXRenderModeObj* mode, JKRHeap* p_heap, JUTXfb::EXfbNumber xfb_num, bool enableAlpha) {
JFWDisplay::JFWDisplay(const GXRenderModeObj* mode, JKRHeap* p_heap, JUTXfb::EXfbNumber xfb_num, bool enableAlpha) {
ctor_subroutine(mode, enableAlpha);
mXfbManager = JUTXfb::createManager(mode, p_heap, xfb_num);
}
Expand Down Expand Up @@ -96,7 +96,7 @@ void callDirectDraw() {

/* 80255444-80255528 .text prepareCopyDisp__10JFWDisplayFv */
void JFWDisplay::prepareCopyDisp() {
_GXRenderModeObj* renderObj = JUTVideo::getManager()->getRenderMode();
GXRenderModeObj* renderObj = JUTVideo::getManager()->getRenderMode();
u16 width, height;
JUTVideo::getManager()->getBounds(width, height);
u16 xfb_height = JUTVideo::getManager()->getXfbHeight();
Expand Down
2 changes: 1 addition & 1 deletion src/JSystem/JUtility/JUTPalette.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ void JUTPalette::storeTLUT(GXTlut param_0, ResTLUT* tlut) {
GXInitTlutObj(&mTlutObj, (void*)mColorTable, (GXTlutFmt)mFormat, mNumColors);
}

void JUTPalette::storeTLUT(GXTlut param_0, _GXTlutFmt param_1, JUTTransparency param_2,
void JUTPalette::storeTLUT(GXTlut param_0, GXTlutFmt param_1, JUTTransparency param_2,
u16 param_3, void* param_4) {
mTlutName = param_0;
mFormat = param_1;
Expand Down
4 changes: 2 additions & 2 deletions src/JSystem/JUtility/JUTResFont.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ f32 JUTResFont::drawChar_scale(f32 posX, f32 posY, f32 scaleX, f32 scaleY, int c
}

/* 802C2D6C-802C2DE8 .text loadFont__10JUTResFontFi11_GXTexMapIDPQ27JUTFont6TWidth */
void JUTResFont::loadFont(int code, _GXTexMapID texMapID, JUTFont::TWidth* pDstWidth) {
void JUTResFont::loadFont(int code, GXTexMapID texMapID, JUTFont::TWidth* pDstWidth) {
if (pDstWidth) {
getWidthEntry(code, pDstWidth);
}
Expand Down Expand Up @@ -397,7 +397,7 @@ int JUTResFont::getFontCode(int chr) const {
}

/* 802C30E4-802C3248 .text loadImage__10JUTResFontFi11_GXTexMapID */
void JUTResFont::loadImage(int code, _GXTexMapID id) {
void JUTResFont::loadImage(int code, GXTexMapID id) {
int i = 0;
for (; i < mGlyphBlockNum; i++) {
if (mpGlyphBlocks[i]->startCode <= code && code <= mpGlyphBlocks[i]->endCode) {
Expand Down
4 changes: 2 additions & 2 deletions src/JSystem/JUtility/JUTTexture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ JUTTexture::~JUTTexture() {

/* 802C1470-802C15FC .text storeTIMG__10JUTTextureFPC7ResTIMGUc */
void JUTTexture::storeTIMG(const ResTIMG* pTimg, u8 param_1) {
_GXTlut tlut;
GXTlut tlut;

if (pTimg && param_1 < 0x10) {
mTexInfo = pTimg;
Expand Down Expand Up @@ -71,7 +71,7 @@ void JUTTexture::attachPalette(JUTPalette* pPalette) {
} else {
mAttachedPalette = pPalette;
}
_GXTlut name = (GXTlut)mAttachedPalette->getTlutName();
GXTlut name = (GXTlut)mAttachedPalette->getTlutName();
initTexObj(name);
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/JSystem/JUtility/JUTXfb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ void JUTXfb::common_init(int bufNum) {
}

/* 802C8224-802C82CC .text __ct__6JUTXfbFPC16_GXRenderModeObjP7JKRHeapQ26JUTXfb10EXfbNumber */
JUTXfb::JUTXfb(const _GXRenderModeObj* pObj, JKRHeap* pHeap, JUTXfb::EXfbNumber xfbNum) {
JUTXfb::JUTXfb(const GXRenderModeObj* pObj, JKRHeap* pHeap, JUTXfb::EXfbNumber xfbNum) {
common_init(xfbNum);

if (pObj) {
Expand Down Expand Up @@ -62,7 +62,7 @@ void JUTXfb::delXfb(int xfbIdx) {
}

/* 802C837C-802C8410 .text createManager__6JUTXfbFPC16_GXRenderModeObjP7JKRHeapQ26JUTXfb10EXfbNumber */
JUTXfb* JUTXfb::createManager(const _GXRenderModeObj* pObj, JKRHeap* pHeap, JUTXfb::EXfbNumber xfbNum) {
JUTXfb* JUTXfb::createManager(const GXRenderModeObj* pObj, JKRHeap* pHeap, JUTXfb::EXfbNumber xfbNum) {
JUT_CONFIRM(VERSION_SELECT(198, 203, 203), sManager == 0);
if (sManager == NULL) {
sManager = new JUTXfb(pObj, pHeap, xfbNum);
Expand Down
2 changes: 1 addition & 1 deletion src/d/actor/d_a_obj_leaves.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ void daObjLeaves_c::init_mtx() {
}

/* 00000148-000002E4 .text birthEffect__13daObjLeaves_cFiP4cXyzP5csXyzP8_GXColor */
void daObjLeaves_c::birthEffect(int, cXyz*, csXyz*, _GXColor*) {
void daObjLeaves_c::birthEffect(int, cXyz*, csXyz*, GXColor*) {
/* Nonmatching */
}

Expand Down
8 changes: 4 additions & 4 deletions src/d/d_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ void dMap_RoomInfoCtrl_c::checkFloorMoveImageChangeRoom(u8, u8, int, s16, s16, f
}

/* 8004DA54-8004DBE0 .text init__22dMap_2DMtMapSpcl_tex_cFP7ResTIMGUlRC8_GXColor */
void dMap_2DMtMapSpcl_tex_c::init(ResTIMG*, u32, const _GXColor&) {
void dMap_2DMtMapSpcl_tex_c::init(ResTIMG*, u32, const GXColor&) {
/* Nonmatching */
}

Expand Down Expand Up @@ -773,7 +773,7 @@ void dMap_2DAGBScrDsp_c::setScale(f32, f32) {
}

/* 8004EE50-8004EE88 .text init__12dMap_2DTri_cFssRC8_GXColorffs */
void dMap_2DTri_c::init(s16, s16, const _GXColor&, f32, f32, s16) {
void dMap_2DTri_c::init(s16, s16, const GXColor&, f32, f32, s16) {
/* Nonmatching */
}

Expand All @@ -788,7 +788,7 @@ void dMap_2DTri_c::setPos(s16, s16) {
}

/* 8004F08C-8004F0BC .text init__14dMap_2DPoint_cFssRC8_GXColorUc */
void dMap_2DPoint_c::init(s16, s16, const _GXColor&, u8) {
void dMap_2DPoint_c::init(s16, s16, const GXColor&, u8) {
/* Nonmatching */
}

Expand All @@ -798,7 +798,7 @@ void dMap_2DPoint_c::draw() {
}

/* 8004F1E4-8004F214 .text init__18dMap_2DAGBCursor_cFssRC8_GXColorUc */
void dMap_2DAGBCursor_c::init(s16, s16, const _GXColor&, u8) {
void dMap_2DAGBCursor_c::init(s16, s16, const GXColor&, u8) {
/* Nonmatching */
}

Expand Down
2 changes: 1 addition & 1 deletion src/d/d_menu_cloth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void dMCloth_c::ShadowTevSetting() {
}

/* 8019ADD4-8019B670 .text draw__9dMCloth_cFf8_GXColor8_GXColorUc */
void dMCloth_c::draw(float, _GXColor, _GXColor, unsigned char) {
void dMCloth_c::draw(float, GXColor, GXColor, unsigned char) {
/* Nonmatching */
}

Expand Down
4 changes: 2 additions & 2 deletions src/d/d_particle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ dPa_smokeEcallBack::dPa_smokeEcallBack(u8 param_1, u8 param_2, u8 param_3, u8 pa
}

/* 8007B558-8007B5E8 .text __ct__18dPa_smokeEcallBackFRC8_GXColorP12dKy_tevstr_cUc */
dPa_smokeEcallBack::dPa_smokeEcallBack(const _GXColor& param_1, dKy_tevstr_c* param_2, u8 param_3) {
dPa_smokeEcallBack::dPa_smokeEcallBack(const GXColor& param_1, dKy_tevstr_c* param_2, u8 param_3) {
field_0x16 = param_1;
mTevstr = param_2;
mRateOff = param_3;
Expand Down Expand Up @@ -880,7 +880,7 @@ bool dPa_control_c::newSimple(u16 param_1, u8 param_2) {
}

/* 8007DBC4-8007DC30 .text setSimple__13dPa_control_cFUsPC4cXyzUcRC8_GXColorRC8_GXColori */
bool dPa_control_c::setSimple(u16 param_1, const cXyz* param_2, u8 param_3, const _GXColor& param_4, const _GXColor& param_5, int param_6) {
bool dPa_control_c::setSimple(u16 param_1, const cXyz* param_2, u8 param_3, const GXColor& param_4, const GXColor& param_5, int param_6) {
dPa_simpleEcallBack* simple = getSimple(param_1);
if (simple == NULL) {
return false;
Expand Down

0 comments on commit e620f93

Please sign in to comment.