mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-12 21:45:19 -04:00
Various JSystem work (#2383)
* JKernel and JStudio cleanup * JMessage cleanup * JAudio cleanup * JASBNKParser work * functionvalue work * fvb work * J2D and J3D cleanup * steal from tww * J2DPictureEx mostly done * fix build
This commit is contained in:
@@ -10,250 +10,8 @@
|
||||
#include "JSystem/JUtility/JUTTexture.h"
|
||||
#include "JSystem/JUtility/JUTResource.h"
|
||||
#include "JSystem/JSupport/JSURandomInputStream.h"
|
||||
#include "dol2asm.h"
|
||||
#include "dolphin/gx.h"
|
||||
|
||||
//
|
||||
// Forward References:
|
||||
//
|
||||
|
||||
extern "C" void __ct__10J2DPictureFv();
|
||||
extern "C" void __ct__10J2DPictureFP7J2DPaneP20JSURandomInputStreamP10JKRArchive();
|
||||
extern "C" void __ct__10J2DPictureFP7J2DPaneP20JSURandomInputStreamP11J2DMaterial();
|
||||
extern "C" void __ct__10J2DPictureFPC7ResTIMG();
|
||||
extern "C" void func_802FC800();
|
||||
extern "C" void private_readStream__10J2DPictureFP7J2DPaneP20JSURandomInputStreamP10JKRArchive();
|
||||
extern "C" void initiate__10J2DPictureFPC7ResTIMGPC7ResTLUT();
|
||||
extern "C" void private_initiate__10J2DPictureFPC7ResTIMGPC7ResTLUT();
|
||||
extern "C" void initinfo__10J2DPictureFv();
|
||||
extern "C" void __dt__10J2DPictureFv();
|
||||
extern "C" void prepareTexture__10J2DPictureFUc();
|
||||
extern "C" void insert__10J2DPictureFPC7ResTIMGP10JUTPaletteUcf();
|
||||
extern "C" void insert__10J2DPictureFPCcP10JUTPaletteUcf();
|
||||
extern "C" void insert__10J2DPictureFP10JUTTextureUcf();
|
||||
extern "C" void remove__10J2DPictureFUc();
|
||||
extern "C" void remove__10J2DPictureFP10JUTTexture();
|
||||
extern "C" void changeTexture__10J2DPictureFPC7ResTIMGUc();
|
||||
extern "C" void changeTexture__10J2DPictureFPCcUc();
|
||||
extern "C" void changeTexture__10J2DPictureFPC7ResTIMGUcP10JUTPalette();
|
||||
extern "C" void changeTexture__10J2DPictureFPCcUcP10JUTPalette();
|
||||
extern "C" void drawSelf__10J2DPictureFff();
|
||||
extern "C" void drawSelf__10J2DPictureFffPA3_A4_f();
|
||||
extern "C" void drawFullSet__10J2DPictureFffffPA3_A4_f();
|
||||
extern "C" void draw__10J2DPictureFffffbbb();
|
||||
extern "C" void func_802FDF88();
|
||||
extern "C" void drawTexCoord__10J2DPictureFffffssssssssPA3_A4_f();
|
||||
extern "C" void setTevMode__10J2DPictureFv();
|
||||
extern "C" void swap__10J2DPictureFRfRf();
|
||||
extern "C" void setBlendColorRatio__10J2DPictureFff();
|
||||
extern "C" void setBlendAlphaRatio__10J2DPictureFff();
|
||||
extern "C" void setBlendKonstColor__10J2DPictureFv();
|
||||
extern "C" void setBlendKonstAlpha__10J2DPictureFv();
|
||||
extern "C" void getNewColor__10J2DPictureFPQ28JUtility6TColor();
|
||||
extern "C" void setTexCoord__10J2DPictureFPC10JUTTexture10J2DBinding9J2DMirrorb();
|
||||
extern "C" void func_802FED84();
|
||||
extern "C" void isUsed__10J2DPictureFPC7ResTIMG();
|
||||
extern "C" void getUsableTlut__10J2DPictureFUc();
|
||||
extern "C" void getTlutID__10J2DPictureFPC7ResTIMGUc();
|
||||
extern "C" void func_802FF204(void* _this);
|
||||
extern "C" void append__10J2DPictureFP10JUTTexturef();
|
||||
extern "C" void append__10J2DPictureFPC7ResTIMGP10JUTPalettef();
|
||||
extern "C" void load__10J2DPictureFUc();
|
||||
extern "C" void load__10J2DPictureF11_GXTexMapIDUc();
|
||||
extern "C" s32 getTypeID__10J2DPictureCFv();
|
||||
extern "C" void append__10J2DPictureFPCcP10JUTPalettef();
|
||||
extern "C" void prepend__10J2DPictureFP10JUTTexturef();
|
||||
extern "C" void prepend__10J2DPictureFPCcP10JUTPalettef();
|
||||
extern "C" void prepend__10J2DPictureFPCcf();
|
||||
extern "C" void prepend__10J2DPictureFPC7ResTIMGP10JUTPalettef();
|
||||
extern "C" void prepend__10J2DPictureFPC7ResTIMGf();
|
||||
extern "C" void remove__10J2DPictureFv();
|
||||
extern "C" void draw__10J2DPictureFffUcbbb();
|
||||
extern "C" void draw__10J2DPictureFffbbb();
|
||||
extern "C" void drawOut__10J2DPictureFffffffff();
|
||||
extern "C" void drawOut__10J2DPictureFffffff();
|
||||
extern "C" void getTextureCount__10J2DPictureCFv();
|
||||
extern "C" void isUsed__10J2DPictureFPC7ResFONT();
|
||||
extern "C" void rewriteAlpha__10J2DPictureFv();
|
||||
|
||||
//
|
||||
// External References:
|
||||
//
|
||||
|
||||
extern "C" void setAlpha__7J2DPaneFUc();
|
||||
extern "C" void setBlendRatio__10J2DPictureFff();
|
||||
extern "C" void append__10J2DPictureFPCcf();
|
||||
extern "C" void insert__10J2DPictureFPCcUcf();
|
||||
extern "C" void getTexture__10J2DPictureCFUc();
|
||||
extern "C" void calcMtx__7J2DPaneFv();
|
||||
extern "C" void makeMatrix__7J2DPaneFff();
|
||||
extern "C" void setWhite__10J2DPictureFQ28JUtility6TColor();
|
||||
extern "C" void setBlack__10J2DPictureFQ28JUtility6TColor();
|
||||
extern "C" void setAnimation__7J2DPaneFP15J2DAnmTevRegKey();
|
||||
extern "C" void setAnimation__7J2DPaneFP11J2DAnmColor();
|
||||
extern "C" void setBlackWhite__10J2DPictureFQ28JUtility6TColorQ28JUtility6TColor();
|
||||
extern "C" void setAnimation__7J2DPaneFP19J2DAnmTextureSRTKey();
|
||||
extern "C" void __ct__Q28JUtility6TColorFv();
|
||||
extern "C" void append__10J2DPictureFPC7ResTIMGf();
|
||||
extern "C" void insert__10J2DPictureFPC7ResTIMGUcf();
|
||||
extern "C" void getWhite__10J2DPictureCFv();
|
||||
extern "C" void getBlack__10J2DPictureCFv();
|
||||
extern "C" void setAnimation__7J2DPaneFP14J2DAnmVtxColor();
|
||||
extern "C" void setAnimation__7J2DPaneFP20J2DAnmVisibilityFull();
|
||||
extern "C" void setAnimation__7J2DPaneFP16J2DAnmTexPattern();
|
||||
extern "C" bool getMaterial__10J2DPictureCFv();
|
||||
extern "C" void* __nw__FUl();
|
||||
extern "C" void __dl__FPv();
|
||||
extern "C" void read__14JSUInputStreamFPvl();
|
||||
extern "C" void peek__20JSURandomInputStreamFPvl();
|
||||
extern "C" void seek__20JSURandomInputStreamFl17JSUStreamSeekFrom();
|
||||
extern "C" void __dt__10JUTTextureFv();
|
||||
extern "C" void storeTIMG__10JUTTextureFPC7ResTIMGUc();
|
||||
extern "C" void storeTIMG__10JUTTextureFPC7ResTIMGP10JUTPalette();
|
||||
extern "C" void storeTIMG__10JUTTextureFPC7ResTIMGP10JUTPalette7_GXTlut();
|
||||
extern "C" void attachPalette__10JUTTextureFP10JUTPalette();
|
||||
extern "C" void load__10JUTTextureF11_GXTexMapID();
|
||||
extern "C" void storeTLUT__10JUTPaletteF7_GXTlutP7ResTLUT();
|
||||
extern "C" void __ct__7J2DPaneFv();
|
||||
extern "C" void func_802F5E88();
|
||||
extern "C" void makePaneStream__7J2DPaneFP7J2DPaneP20JSURandomInputStream();
|
||||
extern "C" void __dt__7J2DPaneFv();
|
||||
extern "C" void func_802F6D18();
|
||||
extern "C" void move__7J2DPaneFff();
|
||||
extern "C" void add__7J2DPaneFff();
|
||||
extern "C" void resize__7J2DPaneFff();
|
||||
extern "C" void search__7J2DPaneFUx();
|
||||
extern "C" void searchUserInfo__7J2DPaneFUx();
|
||||
extern "C" void isUsed__7J2DPaneFPC7ResTIMG();
|
||||
extern "C" void isUsed__7J2DPaneFPC7ResFONT();
|
||||
extern "C" void makeMatrix__7J2DPaneFffff();
|
||||
extern "C" void setCullBack__7J2DPaneF11_GXCullMode();
|
||||
extern "C" void makePaneExStream__7J2DPaneFP7J2DPaneP20JSURandomInputStream();
|
||||
extern "C" void J2DCast_F32_to_S16__7J2DPaneFfUc();
|
||||
extern "C" void getPointer__7J2DPaneFP20JSURandomInputStreamUlP10JKRArchive();
|
||||
extern "C" void setAnimation__7J2DPaneFP10J2DAnmBase();
|
||||
extern "C" void setAnimation__7J2DPaneFP15J2DAnmTransform();
|
||||
extern "C" void clearAnmTransform__7J2DPaneFv();
|
||||
extern "C" void animationTransform__7J2DPaneFPC15J2DAnmTransform();
|
||||
extern "C" void setVisibileAnimation__7J2DPaneFP20J2DAnmVisibilityFull();
|
||||
extern "C" void setVtxColorAnimation__7J2DPaneFP14J2DAnmVtxColor();
|
||||
extern "C" void animationPane__7J2DPaneFPC15J2DAnmTransform();
|
||||
extern "C" void setAnimationVF__7J2DPaneFP20J2DAnmVisibilityFull();
|
||||
extern "C" void setAnimationVC__7J2DPaneFP14J2DAnmVtxColor();
|
||||
extern "C" void setCullBack__7J2DPaneFb();
|
||||
extern "C" void setConnectParent__7J2DPaneFb();
|
||||
extern "C" void update__7J2DPaneFv();
|
||||
extern "C" void getNameResource__9J2DScreenFPCc();
|
||||
extern "C" void __construct_array();
|
||||
extern "C" void _savegpr_21();
|
||||
extern "C" void _savegpr_22();
|
||||
extern "C" void _savegpr_25();
|
||||
extern "C" void _savegpr_26();
|
||||
extern "C" void _savegpr_27();
|
||||
extern "C" void _savegpr_28();
|
||||
extern "C" void _savegpr_29();
|
||||
extern "C" void _restgpr_21();
|
||||
extern "C" void _restgpr_22();
|
||||
extern "C" void _restgpr_25();
|
||||
extern "C" void _restgpr_26();
|
||||
extern "C" void _restgpr_27();
|
||||
extern "C" void _restgpr_28();
|
||||
extern "C" void _restgpr_29();
|
||||
|
||||
//
|
||||
// Declarations:
|
||||
//
|
||||
|
||||
/* ############################################################################################## */
|
||||
/* 803CD1D8-803CD328 02A2F8 014C+04 6/6 0/0 0/0 .data __vt__10J2DPicture */
|
||||
SECTION_DATA extern void* __vt__10J2DPicture[83 + 1 /* padding */] = {
|
||||
(void*)NULL /* RTTI */,
|
||||
(void*)NULL,
|
||||
(void*)__dt__10J2DPictureFv,
|
||||
(void*)getTypeID__10J2DPictureCFv,
|
||||
(void*)move__7J2DPaneFff,
|
||||
(void*)add__7J2DPaneFff,
|
||||
(void*)resize__7J2DPaneFff,
|
||||
(void*)setCullBack__7J2DPaneFb,
|
||||
(void*)setCullBack__7J2DPaneF11_GXCullMode,
|
||||
(void*)setAlpha__7J2DPaneFUc,
|
||||
(void*)setConnectParent__7J2DPaneFb,
|
||||
(void*)calcMtx__7J2DPaneFv,
|
||||
(void*)update__7J2DPaneFv,
|
||||
(void*)drawSelf__10J2DPictureFff,
|
||||
(void*)drawSelf__10J2DPictureFffPA3_A4_f,
|
||||
(void*)search__7J2DPaneFUx,
|
||||
(void*)searchUserInfo__7J2DPaneFUx,
|
||||
(void*)makeMatrix__7J2DPaneFff,
|
||||
(void*)makeMatrix__7J2DPaneFffff,
|
||||
(void*)isUsed__10J2DPictureFPC7ResTIMG,
|
||||
(void*)isUsed__10J2DPictureFPC7ResFONT,
|
||||
(void*)clearAnmTransform__7J2DPaneFv,
|
||||
(void*)rewriteAlpha__10J2DPictureFv,
|
||||
(void*)setAnimation__7J2DPaneFP10J2DAnmBase,
|
||||
(void*)setAnimation__7J2DPaneFP15J2DAnmTransform,
|
||||
(void*)setAnimation__7J2DPaneFP11J2DAnmColor,
|
||||
(void*)setAnimation__7J2DPaneFP16J2DAnmTexPattern,
|
||||
(void*)setAnimation__7J2DPaneFP19J2DAnmTextureSRTKey,
|
||||
(void*)setAnimation__7J2DPaneFP15J2DAnmTevRegKey,
|
||||
(void*)setAnimation__7J2DPaneFP20J2DAnmVisibilityFull,
|
||||
(void*)setAnimation__7J2DPaneFP14J2DAnmVtxColor,
|
||||
(void*)animationTransform__7J2DPaneFPC15J2DAnmTransform,
|
||||
(void*)setVisibileAnimation__7J2DPaneFP20J2DAnmVisibilityFull,
|
||||
(void*)setAnimationVF__7J2DPaneFP20J2DAnmVisibilityFull,
|
||||
(void*)setVtxColorAnimation__7J2DPaneFP14J2DAnmVtxColor,
|
||||
(void*)setAnimationVC__7J2DPaneFP14J2DAnmVtxColor,
|
||||
(void*)animationPane__7J2DPaneFPC15J2DAnmTransform,
|
||||
(void*)initiate__10J2DPictureFPC7ResTIMGPC7ResTLUT,
|
||||
(void*)prepareTexture__10J2DPictureFUc,
|
||||
(void*)append__10J2DPictureFPC7ResTIMGf,
|
||||
(void*)append__10J2DPictureFPC7ResTIMGP10JUTPalettef,
|
||||
(void*)append__10J2DPictureFPCcf,
|
||||
(void*)append__10J2DPictureFPCcP10JUTPalettef,
|
||||
(void*)append__10J2DPictureFP10JUTTexturef,
|
||||
(void*)prepend__10J2DPictureFPC7ResTIMGf,
|
||||
(void*)prepend__10J2DPictureFPC7ResTIMGP10JUTPalettef,
|
||||
(void*)prepend__10J2DPictureFPCcf,
|
||||
(void*)prepend__10J2DPictureFPCcP10JUTPalettef,
|
||||
(void*)prepend__10J2DPictureFP10JUTTexturef,
|
||||
(void*)insert__10J2DPictureFPC7ResTIMGUcf,
|
||||
(void*)insert__10J2DPictureFPC7ResTIMGP10JUTPaletteUcf,
|
||||
(void*)insert__10J2DPictureFPCcUcf,
|
||||
(void*)insert__10J2DPictureFPCcP10JUTPaletteUcf,
|
||||
(void*)insert__10J2DPictureFP10JUTTextureUcf,
|
||||
(void*)remove__10J2DPictureFUc,
|
||||
(void*)remove__10J2DPictureFv,
|
||||
(void*)remove__10J2DPictureFP10JUTTexture,
|
||||
(void*)draw__10J2DPictureFffbbb,
|
||||
(void*)draw__10J2DPictureFffUcbbb,
|
||||
(void*)draw__10J2DPictureFffffbbb,
|
||||
(void*)drawOut__10J2DPictureFffffff,
|
||||
(void*)drawOut__10J2DPictureFffffffff,
|
||||
(void*)func_802FDF88,
|
||||
(void*)load__10J2DPictureF11_GXTexMapIDUc,
|
||||
(void*)load__10J2DPictureFUc,
|
||||
(void*)setBlendRatio__10J2DPictureFff,
|
||||
(void*)setBlendColorRatio__10J2DPictureFff,
|
||||
(void*)setBlendAlphaRatio__10J2DPictureFff,
|
||||
(void*)changeTexture__10J2DPictureFPC7ResTIMGUc,
|
||||
(void*)changeTexture__10J2DPictureFPCcUc,
|
||||
(void*)changeTexture__10J2DPictureFPC7ResTIMGUcP10JUTPalette,
|
||||
(void*)changeTexture__10J2DPictureFPCcUcP10JUTPalette,
|
||||
(void*)getTexture__10J2DPictureCFUc,
|
||||
(void*)getTextureCount__10J2DPictureCFv,
|
||||
(void*)setBlack__10J2DPictureFQ28JUtility6TColor,
|
||||
(void*)setWhite__10J2DPictureFQ28JUtility6TColor,
|
||||
(void*)setBlackWhite__10J2DPictureFQ28JUtility6TColorQ28JUtility6TColor,
|
||||
(void*)getBlack__10J2DPictureCFv,
|
||||
(void*)getWhite__10J2DPictureCFv,
|
||||
(void*)getMaterial__10J2DPictureCFv,
|
||||
(void*)drawFullSet__10J2DPictureFffffPA3_A4_f,
|
||||
(void*)drawTexCoord__10J2DPictureFffffssssssssPA3_A4_f,
|
||||
(void*)getUsableTlut__10J2DPictureFUc,
|
||||
/* padding */
|
||||
NULL,
|
||||
};
|
||||
|
||||
/* 802FC050-802FC118 2F6990 00C8+00 0/0 2/2 0/0 .text __ct__10J2DPictureFv */
|
||||
J2DPicture::J2DPicture() : mPalette(NULL) {
|
||||
for (int i = 0; i < 2; i++) {
|
||||
@@ -273,11 +31,6 @@ J2DPicture::J2DPicture(J2DPane* p_pane, JSURandomInputStream* p_stream, JKRArchi
|
||||
private_readStream(p_pane, p_stream, p_archive);
|
||||
}
|
||||
|
||||
|
||||
/* ############################################################################################## */
|
||||
/* 80456260-80456268 004860 0008+00 1/1 0/0 0/0 .sdata2 @1739 */
|
||||
SECTION_SDATA2 static f64 lit_1739 = 4503599627370496.0 /* cast u32 to float */;
|
||||
|
||||
/* 802FC1D4-802FC708 2F6B14 0534+00 0/0 1/1 0/0 .text
|
||||
* __ct__10J2DPictureFP7J2DPaneP20JSURandomInputStreamP11J2DMaterial */
|
||||
J2DPicture::J2DPicture(J2DPane* p_pane, JSURandomInputStream* p_stream, J2DMaterial* p_material)
|
||||
@@ -381,11 +134,6 @@ J2DPicture::J2DPicture(J2DPane* p_pane, JSURandomInputStream* p_stream, J2DMater
|
||||
setBlendAlphaRatio(alpha.a, alpha.b);
|
||||
}
|
||||
|
||||
|
||||
/* ############################################################################################## */
|
||||
/* 80456268-8045626C 004868 0004+00 9/9 0/0 0/0 .sdata2 @1767 */
|
||||
SECTION_SDATA2 static f32 lit_1767 = 1.0f;
|
||||
|
||||
/* 802FC708-802FC800 2F7048 00F8+00 0/0 20/20 1/1 .text __ct__10J2DPictureFPC7ResTIMG */
|
||||
J2DPicture::J2DPicture(ResTIMG const* p_timg) {
|
||||
for (int i = 0; i < 2; i++) {
|
||||
@@ -419,7 +167,6 @@ J2DPicture::J2DPicture(u64 tag, JGeometry::TBox2<f32> const& bounds, ResTIMG con
|
||||
initinfo();
|
||||
}
|
||||
|
||||
|
||||
/* 802FC8E8-802FCCDC 2F7228 03F4+00 1/1 0/0 0/0 .text
|
||||
* private_readStream__10J2DPictureFP7J2DPaneP20JSURandomInputStreamP10JKRArchive */
|
||||
void J2DPicture::private_readStream(J2DPane* parent, JSURandomInputStream* stream,
|
||||
@@ -496,19 +243,6 @@ void J2DPicture::private_readStream(J2DPane* parent, JSURandomInputStream* strea
|
||||
setBlendRatio(1.0f, 1.0f);
|
||||
}
|
||||
|
||||
|
||||
/* ############################################################################################## */
|
||||
/* 8045626C-80456270 00486C 0004+00 9/9 0/0 0/0 .sdata2 @2017 */
|
||||
SECTION_SDATA2 static u8 lit_2017[4] = {
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
};
|
||||
|
||||
/* 80456270-80456278 004870 0008+00 7/7 0/0 0/0 .sdata2 @2021 */
|
||||
SECTION_SDATA2 static f64 lit_2021 = 4503601774854144.0 /* cast s32 to float */;
|
||||
|
||||
/* 802FCCDC-802FCD70 2F761C 0094+00 1/0 0/0 0/0 .text initiate__10J2DPictureFPC7ResTIMGPC7ResTLUT
|
||||
*/
|
||||
void J2DPicture::initiate(const ResTIMG* img, const ResTLUT* lut) {
|
||||
@@ -520,7 +254,6 @@ void J2DPicture::initiate(const ResTIMG* img, const ResTLUT* lut) {
|
||||
place(JGeometry::TBox2<f32>(0.0f, 0.0f, mTexture[0]->getWidth(), mTexture[0]->getHeight()));
|
||||
}
|
||||
|
||||
|
||||
/* 802FCD70-802FCE9C 2F76B0 012C+00 2/2 0/0 0/0 .text
|
||||
* private_initiate__10J2DPictureFPC7ResTIMGPC7ResTLUT */
|
||||
void J2DPicture::private_initiate(const ResTIMG* timg, const ResTLUT* tlut) {
|
||||
@@ -555,7 +288,7 @@ void J2DPicture::private_initiate(const ResTIMG* timg, const ResTLUT* tlut) {
|
||||
void J2DPicture::initinfo() {
|
||||
mKind = 'PIC1';
|
||||
setTexCoord(NULL, BIND15, MIRROR0, false);
|
||||
setBlendRatio(lit_1767, lit_1767);
|
||||
setBlendRatio(1.0f, 1.0f);
|
||||
|
||||
mBlack = 0;
|
||||
mWhite = -1;
|
||||
@@ -782,6 +515,11 @@ const ResTIMG* J2DPicture::changeTexture(char const* resName, u8 param_1) {
|
||||
return changeTexture((ResTIMG*)resource, param_1);
|
||||
}
|
||||
|
||||
static bool dummy_weak_order(JUTTexture* tex) {
|
||||
J2DPicture* picture;
|
||||
return picture->append(tex, 1.0f);
|
||||
}
|
||||
|
||||
/* 802FD9BC-802FDAC8 2F82FC 010C+00 1/0 0/0 0/0 .text
|
||||
* changeTexture__10J2DPictureFPC7ResTIMGUcP10JUTPalette */
|
||||
const ResTIMG* J2DPicture::changeTexture(ResTIMG const* img, u8 texIndex, JUTPalette* palette) {
|
||||
@@ -1125,10 +863,6 @@ void J2DPicture::setBlendAlphaRatio(f32 param_0, f32 param_1) {
|
||||
setBlendKonstAlpha();
|
||||
}
|
||||
|
||||
/* ############################################################################################## */
|
||||
/* 80456278-8045627C 004878 0004+00 2/2 0/0 0/0 .sdata2 @2758 */
|
||||
SECTION_SDATA2 static f32 lit_2758 = 255.0f;
|
||||
|
||||
/* 802FEAC4-802FEB94 2F9404 00D0+00 4/4 0/0 0/0 .text setBlendKonstColor__10J2DPictureFv
|
||||
*/
|
||||
void J2DPicture::setBlendKonstColor() {
|
||||
@@ -1148,7 +882,6 @@ void J2DPicture::setBlendKonstColor() {
|
||||
mBlendKonstColor = uvar3;
|
||||
}
|
||||
|
||||
|
||||
/* 802FEB94-802FEC64 2F94D4 00D0+00 4/4 0/0 0/0 .text setBlendKonstAlpha__10J2DPictureFv
|
||||
*/
|
||||
void J2DPicture::setBlendKonstAlpha() {
|
||||
@@ -1168,7 +901,6 @@ void J2DPicture::setBlendKonstAlpha() {
|
||||
mBlendKonstAlpha = uvar3;
|
||||
}
|
||||
|
||||
|
||||
/* 802FEC64-802FED44 2F95A4 00E0+00 3/3 0/0 0/0 .text
|
||||
* getNewColor__10J2DPictureFPQ28JUtility6TColor */
|
||||
void J2DPicture::getNewColor(JUtility::TColor* param_0) {
|
||||
@@ -1192,10 +924,6 @@ void J2DPicture::setTexCoord(JUTTexture const* param_0, J2DBinding param_1, J2DM
|
||||
setTexCoord(&field_0x10a[0], param_0, param_1, param_2, param_3);
|
||||
}
|
||||
|
||||
/* ############################################################################################## */
|
||||
/* 8045627C-80456280 00487C 0004+00 1/1 0/0 0/0 .sdata2 @2933 */
|
||||
SECTION_SDATA2 static f32 lit_2933 = 0.5f;
|
||||
|
||||
/* 802FED84-802FF09C 2F96C4 0318+00 2/2 0/0 0/0 .text
|
||||
* setTexCoord__10J2DPictureFPQ29JGeometry8TVec2<s>PC10JUTTexture10J2DBinding9J2DMirrorb */
|
||||
void J2DPicture::setTexCoord(JGeometry::TVec2<s16>* param_0, JUTTexture const* param_1,
|
||||
@@ -1362,123 +1090,3 @@ GXTlut J2DPicture::getTlutID(ResTIMG const* img, u8 param_1) {
|
||||
|
||||
return (GXTlut)param_1;
|
||||
}
|
||||
|
||||
/* 802FF204-802FF208 2F9B44 0004+00 5/5 1/1 0/0 .text __ct__Q29JGeometry8TVec2<s>Fv */
|
||||
extern "C" void func_802FF204(void* _this) {
|
||||
/* empty function */
|
||||
}
|
||||
|
||||
/* 802FF208-802FF238 2F9B48 0030+00 1/0 0/0 0/0 .text append__10J2DPictureFP10JUTTexturef
|
||||
*/
|
||||
bool J2DPicture::append(JUTTexture* param_0, f32 param_1) {
|
||||
return insert(param_0, mTextureNum, param_1);
|
||||
}
|
||||
|
||||
/* 802FF238-802FF268 2F9B78 0030+00 1/0 0/0 0/0 .text
|
||||
* append__10J2DPictureFPC7ResTIMGP10JUTPalettef */
|
||||
bool J2DPicture::append(ResTIMG const* param_0, JUTPalette* param_1, f32 param_2) {
|
||||
return insert(param_0, param_1, mTextureNum, param_2);
|
||||
}
|
||||
|
||||
/* 802FF268-802FF29C 2F9BA8 0034+00 1/0 0/0 0/0 .text load__10J2DPictureFUc */
|
||||
void J2DPicture::load(u8 param_0) {
|
||||
load((_GXTexMapID)param_0, param_0);
|
||||
}
|
||||
|
||||
/* 802FF29C-802FF2E8 2F9BDC 004C+00 1/0 0/0 0/0 .text load__10J2DPictureF11_GXTexMapIDUc
|
||||
*/
|
||||
void J2DPicture::load(_GXTexMapID param_0, u8 param_1) {
|
||||
if (param_1 < mTextureNum && param_1 < 2 && mTexture[param_1] != NULL) {
|
||||
mTexture[param_1]->load(param_0);
|
||||
}
|
||||
}
|
||||
|
||||
/* 802FF2E8-802FF2F0 2F9C28 0008+00 1/0 1/0 0/0 .text getTypeID__10J2DPictureCFv */
|
||||
u16 J2DPicture::getTypeID() const {
|
||||
return 18;
|
||||
}
|
||||
|
||||
/* 802FF2F0-802FF320 2F9C30 0030+00 1/0 0/0 0/0 .text append__10J2DPictureFPCcP10JUTPalettef */
|
||||
bool J2DPicture::append(char const* param_0, JUTPalette* param_1, f32 param_2) {
|
||||
return insert(param_0, param_1, mTextureNum, param_2);
|
||||
}
|
||||
|
||||
/* 802FF320-802FF350 2F9C60 0030+00 1/0 0/0 0/0 .text prepend__10J2DPictureFP10JUTTexturef */
|
||||
void J2DPicture::prepend(JUTTexture* param_0, f32 param_1) {
|
||||
insert(param_0, 0, param_1);
|
||||
}
|
||||
|
||||
/* 802FF350-802FF380 2F9C90 0030+00 1/0 0/0 0/0 .text prepend__10J2DPictureFPCcP10JUTPalettef */
|
||||
void J2DPicture::prepend(char const* param_0, JUTPalette* param_1, f32 param_2) {
|
||||
insert(param_0, param_1, 0, param_2);
|
||||
}
|
||||
|
||||
/* 802FF380-802FF3B0 2F9CC0 0030+00 1/0 0/0 0/0 .text prepend__10J2DPictureFPCcf */
|
||||
void J2DPicture::prepend(char const* param_0, f32 param_1) {
|
||||
insert(param_0, 0, param_1);
|
||||
}
|
||||
|
||||
/* 802FF3B0-802FF3E0 2F9CF0 0030+00 1/0 0/0 0/0 .text
|
||||
* prepend__10J2DPictureFPC7ResTIMGP10JUTPalettef */
|
||||
void J2DPicture::prepend(ResTIMG const* param_0, JUTPalette* param_1, f32 param_2) {
|
||||
insert(param_0, param_1, 0, param_2);
|
||||
}
|
||||
|
||||
/* 802FF3E0-802FF410 2F9D20 0030+00 1/0 0/0 0/0 .text prepend__10J2DPictureFPC7ResTIMGf
|
||||
*/
|
||||
void J2DPicture::prepend(ResTIMG const* param_0, f32 param_1) {
|
||||
insert(param_0, 0, param_1);
|
||||
}
|
||||
|
||||
/* 802FF410-802FF448 2F9D50 0038+00 1/0 0/0 0/0 .text remove__10J2DPictureFv */
|
||||
bool J2DPicture::remove() {
|
||||
return remove(mTextureNum - 1);
|
||||
}
|
||||
|
||||
/* 802FF448-802FF4E0 2F9D88 0098+00 1/0 0/0 0/0 .text draw__10J2DPictureFffUcbbb */
|
||||
void J2DPicture::draw(f32 param_0, f32 param_1, u8 param_2, bool param_3, bool param_4,
|
||||
bool param_5) {
|
||||
if (param_2 < mTextureNum && mTexture[param_2] != NULL) {
|
||||
draw(param_0, param_1, mTexture[param_2]->getWidth(), mTexture[param_2]->getHeight(),
|
||||
param_3, param_4, param_5);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* 802FF4E0-802FF524 2F9E20 0044+00 1/0 0/0 0/0 .text draw__10J2DPictureFffbbb */
|
||||
void J2DPicture::draw(f32 param_0, f32 param_1, bool param_2, bool param_3, bool param_4) {
|
||||
draw(param_0, param_1, 0, param_2, param_3, param_4);
|
||||
}
|
||||
|
||||
/* 802FF524-802FF588 2F9E64 0064+00 1/0 0/0 0/0 .text drawOut__10J2DPictureFffffffff */
|
||||
void J2DPicture::drawOut(f32 param_0, f32 param_1, f32 param_2, f32 param_3, f32 param_4,
|
||||
f32 param_5, f32 param_6, f32 param_7) {
|
||||
drawOut(JGeometry::TBox2<f32>(param_0, param_1, param_0 + param_2, param_1 + param_3),
|
||||
JGeometry::TBox2<f32>(param_4, param_5, param_4 + param_6, param_5 + param_7));
|
||||
}
|
||||
|
||||
/* 802FF588-802FF634 2F9EC8 00AC+00 1/0 0/0 0/0 .text drawOut__10J2DPictureFffffff */
|
||||
void J2DPicture::drawOut(f32 param_0, f32 param_1, f32 param_2, f32 param_3, f32 param_4,
|
||||
f32 param_5) {
|
||||
if (mTexture[0] != NULL) {
|
||||
drawOut(JGeometry::TBox2<f32>(param_0, param_1, param_0 + param_2, param_1 + param_3),
|
||||
JGeometry::TBox2<f32>(param_4, param_5, param_4 + mTexture[0]->getWidth(),
|
||||
param_5 + mTexture[0]->getHeight()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* 802FF634-802FF63C 2F9F74 0008+00 1/0 0/0 0/0 .text getTextureCount__10J2DPictureCFv */
|
||||
u8 J2DPicture::getTextureCount() const {
|
||||
return mTextureNum;
|
||||
}
|
||||
|
||||
/* 802FF63C-802FF65C 2F9F7C 0020+00 1/0 0/0 0/0 .text isUsed__10J2DPictureFPC7ResFONT */
|
||||
bool J2DPicture::isUsed(ResFONT const* param_0) {
|
||||
return J2DPane::isUsed(param_0);
|
||||
}
|
||||
|
||||
/* 802FF65C-802FF660 2F9F9C 0004+00 1/0 0/0 0/0 .text rewriteAlpha__10J2DPictureFv */
|
||||
void J2DPicture::rewriteAlpha() {
|
||||
/* empty function */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user