mirror of https://github.com/zeldaret/tp.git
38 lines
1.3 KiB
C++
38 lines
1.3 KiB
C++
//
|
|
// Generated By: dol2asm
|
|
// Translation Unit: JPAExTexShape
|
|
//
|
|
|
|
#include "JSystem/JParticle/JPAExTexShape.h"
|
|
#include "JSystem/JParticle/JPAParticle.h"
|
|
#include "JSystem/JParticle/JPAResource.h"
|
|
#include "JSystem/JParticle/JPAResourceManager.h"
|
|
#include "dol2asm.h"
|
|
#include "dolphin/types.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;
|
|
}
|