diff options
| author | Max Roncace <me@caseif.net> | 2025-11-25 23:55:01 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-25 20:55:01 -0800 |
| commit | 2bff9b49b577052ce3fd3effbf7f1f6ad83fbdae (patch) | |
| tree | 1b7fa6ca1b3000afbdda058df64a8c172d11992f /include/JSystem | |
| parent | e0f996e6c3297ab187b6b2cdd5b553cd4bfd46b2 (diff) | |
d_particle equivalent (#2869)
Diffstat (limited to 'include/JSystem')
| -rw-r--r-- | include/JSystem/JParticle/JPAEmitter.h | 9 | ||||
| -rw-r--r-- | include/JSystem/JParticle/JPAParticle.h | 1 |
2 files changed, 9 insertions, 1 deletions
diff --git a/include/JSystem/JParticle/JPAEmitter.h b/include/JSystem/JParticle/JPAEmitter.h index 546b14014c..a9ecdd03b1 100644 --- a/include/JSystem/JParticle/JPAEmitter.h +++ b/include/JSystem/JParticle/JPAEmitter.h @@ -164,7 +164,16 @@ public: mGlobalPScl.set(scaleX, scaleY); } void getGlobalParticleScale(JGeometry::TVec3<f32>& scale) const { + //TODO: Possible fakematch. Debug and Wii indicate TVec3::set, but using it breaks regalloc + // in dPa_gen_b_light8PcallBack::draw on GCN (where the call to set would normally be + // inlined). +#if PLATFORM_GCN + scale.x = mGlobalPScl.x; + scale.y = mGlobalPScl.y; + scale.z = 1.0f; +#else scale.set(mGlobalPScl.x, mGlobalPScl.y, 1.0f); +#endif } void setGlobalScale(const JGeometry::TVec3<f32>& scale) { mGlobalScl.set(scale); diff --git a/include/JSystem/JParticle/JPAParticle.h b/include/JSystem/JParticle/JPAParticle.h index 2e67f8e84a..fd43c3bcc5 100644 --- a/include/JSystem/JParticle/JPAParticle.h +++ b/include/JSystem/JParticle/JPAParticle.h @@ -79,7 +79,6 @@ public: */ class JPAParticleCallBack { public: - JPAParticleCallBack() {} virtual ~JPAParticleCallBack() = 0; virtual void execute(JPABaseEmitter*, JPABaseParticle*) {} virtual void draw(JPABaseEmitter*, JPABaseParticle*) {} |
