diff options
| author | robojumper <robojumper@gmail.com> | 2026-05-07 21:23:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-07 21:23:47 +0200 |
| commit | f7b4c029fd5176e817e3de7209727480c445a3d2 (patch) | |
| tree | 9cddc9fa36ec13e7dac76c54d74257c61fe20b47 /include/JSystem/JParticle/JPAParticle.h | |
| parent | ddb116187922a3f73ae3c97a136f499b7d724a2c (diff) | |
| parent | f4d163797f3c21e5a705b75043e0a8fbe7dc2460 (diff) | |
Merge pull request #313 from robojumper/vec-mtx-cleanup
Cleanup
Diffstat (limited to 'include/JSystem/JParticle/JPAParticle.h')
| -rw-r--r-- | include/JSystem/JParticle/JPAParticle.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/include/JSystem/JParticle/JPAParticle.h b/include/JSystem/JParticle/JPAParticle.h index b0430430..9ba15797 100644 --- a/include/JSystem/JParticle/JPAParticle.h +++ b/include/JSystem/JParticle/JPAParticle.h @@ -27,22 +27,24 @@ public: bool canCreateChild(JPAEmitterWorkData*); f32 getWidth(JPABaseEmitter const*) const; f32 getHeight(JPABaseEmitter const*) const; - int getAge() { return mAge; } + int getAge() const { return mAge; } void setOffsetPosition(const EGG::Vector3f& pos) { mOffsetPosition.set(pos); } void setOffsetPosition(f32 x, f32 y, f32 z) { mOffsetPosition.set(x, y, z); } void getOffsetPosition(EGG::Vector3f& pos) { pos.set(mOffsetPosition); } - s16 getRotateAngle() const { return mRotateAngle; } - void getGlobalPosition(EGG::Vector3f& pos) const { pos.set(mPosition); } + void getOffsetPosition(EGG::Vector3f* pos) const { pos->set(mOffsetPosition); } + u16 getRotateAngle() const { return mRotateAngle; } + void getGlobalPosition(EGG::Vector3f* pos) const { pos->set(mPosition); } f32 getParticleScaleX() const { return mParticleScaleX; } f32 getParticleScaleY() const { return mParticleScaleY; } void setStatus(u32 flag) { mStatus |= flag; } - u32 checkStatus(u32 flag) { return mStatus & flag; } + u32 checkStatus(u32 flag) const { return mStatus & flag; } void initStatus(u32 status) { mStatus = status; } void setInvisibleParticleFlag() { setStatus(8); } void setDeleteParticleFlag() { setStatus(2); } - void getVelVec(EGG::Vector3f& vec) const { vec.set(mVelocity); } - void getLocalPosition(EGG::Vector3f& vec) const { vec.set(mLocalPosition); } + void getVelVec(EGG::Vector3f* vec) const { vec->set(mVelocity); } + void getLocalPosition(EGG::Vector3f* vec) const { vec->set(mLocalPosition); } void getBaseAxis(EGG::Vector3f& vec) const { vec.set(mBaseAxis); } + void getBaseAxis(EGG::Vector3f* vec) const { vec->set(mBaseAxis); } public: /* 0x00 */ EGG::Vector3f mPosition; |
