diff options
| author | robojumper <robojumper@gmail.com> | 2025-04-27 07:13:47 +0200 |
|---|---|---|
| committer | robojumper <robojumper@gmail.com> | 2025-04-27 07:13:47 +0200 |
| commit | c1a0264e6ac151f3a884bc32126de192eede19c7 (patch) | |
| tree | 1649757ae5c7b47b87f17ef69760b4a359a8d46d /src/JSystem/JParticle/JPAExTexShape.cpp | |
| parent | 5df26c52fcc06e017f2cf525264d4f7563715e05 (diff) | |
Initial import of JParticle + JSUList from TP
Diffstat (limited to 'src/JSystem/JParticle/JPAExTexShape.cpp')
| -rw-r--r-- | src/JSystem/JParticle/JPAExTexShape.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/JSystem/JParticle/JPAExTexShape.cpp b/src/JSystem/JParticle/JPAExTexShape.cpp new file mode 100644 index 00000000..4763459a --- /dev/null +++ b/src/JSystem/JParticle/JPAExTexShape.cpp @@ -0,0 +1,35 @@ +// +// Generated By: dol2asm +// Translation Unit: JPAExTexShape +// + +#include "JSystem/JParticle/JPAExTexShape.h" +#include "JSystem/JParticle/JPAResourceManager.h" +#include "JSystem/JParticle/JPAEmitter.h" +#include "dolphin/gx.h" + +/* 8027B040-8027B13C 275980 00FC+00 0/0 1/1 0/0 .text JPALoadExTex__FP18JPAEmitterWorkData */ +void JPALoadExTex(JPAEmitterWorkData* work) { + JPAExTexShape* ets = work->mpRes->getEts(); + + GXTexCoordID secTexCoordID = GX_TEXCOORD1; + if (ets->isUseIndirect()) { + GXSetTexCoordGen2(GX_TEXCOORD1, GX_TG_MTX2x4, GX_TG_TEX0, GX_IDENTITY, GX_FALSE, + GX_PTIDENTITY); + u8 texIdx = ets->getIndTexIdx(); + work->mpResMgr->load(work->mpRes->getTexIdx(texIdx), GX_TEXMAP2); + secTexCoordID = GX_TEXCOORD2; + } + + if (ets->isUseSecTex()) { + GXSetTexCoordGen2(secTexCoordID, GX_TG_MTX2x4, GX_TG_TEX0, GX_IDENTITY, GX_FALSE, + GX_PTIDENTITY); + u8 texIdx = ets->getSecTexIdx(); + work->mpResMgr->load(work->mpRes->getTexIdx(texIdx), GX_TEXMAP3); + } +} + +/* 8027B13C-8027B144 -00001 0008+00 0/0 0/0 0/0 .text __ct__13JPAExTexShapeFPCUc */ +JPAExTexShape::JPAExTexShape(u8 const* data) { + mpData = (const JPAExTexShapeData*)data; +}
\ No newline at end of file |
