mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-12 21:45:19 -04:00
5867eaf68b
* typedef for cPhs_Step * make sdk includes consistent * d_menu_quit / d_msg_scrn_explain debug * d_a_obj_testcube mostly done * d_debug_pad mostly done * jstudio tool library headers * some JStudioCameraEditor headers * d_jcam_editor mostly done * try fixing some shield regressions * d_bg_parts mostly done * fix merge errors * debug fix
31 lines
1.0 KiB
C++
31 lines
1.0 KiB
C++
#include "JSystem/JSystem.h" // IWYU pragma: keep
|
|
|
|
#include "JSystem/JParticle/JPAExTexShape.h"
|
|
#include "JSystem/JParticle/JPAResourceManager.h"
|
|
#include "JSystem/JParticle/JPAEmitter.h"
|
|
#include <dolphin/gx.h>
|
|
|
|
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);
|
|
}
|
|
}
|
|
|
|
JPAExTexShape::JPAExTexShape(u8 const* data) {
|
|
mpData = (const JPAExTexShapeData*)data;
|
|
}
|