mirror of
https://github.com/zeldaret/tp
synced 2026-05-23 06:54:28 -04:00
J3D work (#2064)
This commit is contained in:
@@ -1,15 +1,9 @@
|
||||
//
|
||||
// Generated By: dol2asm
|
||||
// Translation Unit: J3DStruct
|
||||
// J3DStruct
|
||||
//
|
||||
|
||||
#include "JSystem/J3DGraphBase/J3DStruct.h"
|
||||
#include "JSystem/JMath/JMath.h"
|
||||
#include "dol2asm.h"
|
||||
|
||||
//
|
||||
// Declarations:
|
||||
//
|
||||
|
||||
/* 803256C4-80325718 320004 0054+00 0/0 11/11 24/24 .text __as__12J3DLightInfoFRC12J3DLightInfo */
|
||||
J3DLightInfo& J3DLightInfo::operator=(J3DLightInfo const& param_0) {
|
||||
@@ -29,39 +23,23 @@ J3DTexMtxInfo& J3DTexMtxInfo::operator=(J3DTexMtxInfo const& param_0) {
|
||||
return *this;
|
||||
}
|
||||
|
||||
/* ############################################################################################## */
|
||||
/* 80456410-80456414 004A10 0004+00 1/1 0/0 0/0 .sdata2 @409 */
|
||||
SECTION_SDATA2 static f32 lit_409 = 1.0f;
|
||||
|
||||
/* 80456414-80456418 004A14 0004+00 1/1 0/0 0/0 .sdata2 @410 */
|
||||
SECTION_SDATA2 static u8 lit_410[4] = {
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
};
|
||||
// Helper functions to set float literal order
|
||||
static f32 dummyLiteralOrder() {
|
||||
return 1.0f;
|
||||
}
|
||||
|
||||
/* 80325794-803257DC 3200D4 0048+00 0/0 2/2 7/7 .text setEffectMtx__13J3DTexMtxInfoFPA4_f
|
||||
*/
|
||||
// needs inline asm?
|
||||
#ifdef NONMATCHING
|
||||
void J3DTexMtxInfo::setEffectMtx(Mtx param_0) {
|
||||
JMath::gekko_ps_copy12(&mEffectMtx, param_0);
|
||||
mEffectMtx[3][0] = 0.0f;
|
||||
mEffectMtx[3][1] = 0.0f;
|
||||
register f32 zero = 0.0f;
|
||||
register f32* mtx = (f32*)mEffectMtx;
|
||||
asm {
|
||||
psq_st zero, 0x30(mtx), 0, 0
|
||||
};
|
||||
mEffectMtx[3][2] = 0.0f;
|
||||
mEffectMtx[3][3] = 1.0f;
|
||||
}
|
||||
#else
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void J3DTexMtxInfo::setEffectMtx(f32 (*param_0)[4]) {
|
||||
nofralloc
|
||||
#include "asm/JSystem/J3DGraphBase/J3DStruct/setEffectMtx__13J3DTexMtxInfoFPA4_f.s"
|
||||
}
|
||||
#pragma pop
|
||||
#endif
|
||||
|
||||
/* 803257DC-80325800 32011C 0024+00 0/0 5/5 0/0 .text
|
||||
* __as__16J3DIndTexMtxInfoFRC16J3DIndTexMtxInfo */
|
||||
|
||||
Reference in New Issue
Block a user