diff options
| author | TakaRikka <38417346+TakaRikka@users.noreply.github.com> | 2023-09-02 06:38:08 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-02 16:38:08 +0300 |
| commit | 6432e1541ebcf6ba1c535b07f5227bdd4a8d0e61 (patch) | |
| tree | d01d11c2218d7db5dd00d42b57112765a6ee2ceb /include/JSystem | |
| parent | 2d45b68231560eaf0001914c8f2da4bd81f9dd59 (diff) | |
setup dolphin VEC/MTX function defines (#1903)
* setup VEC function defines
* setup MTX function defines
Diffstat (limited to 'include/JSystem')
| -rw-r--r-- | include/JSystem/J2DGraph/J2DPane.h | 2 | ||||
| -rw-r--r-- | include/JSystem/J3DGraphAnimator/J3DModel.h | 2 | ||||
| -rw-r--r-- | include/JSystem/J3DGraphAnimator/J3DMtxBuffer.h | 2 | ||||
| -rw-r--r-- | include/JSystem/J3DGraphBase/J3DSys.h | 2 | ||||
| -rw-r--r-- | include/JSystem/JGeometry.h | 4 | ||||
| -rw-r--r-- | include/JSystem/JParticle/JPADrawInfo.h | 8 | ||||
| -rw-r--r-- | include/JSystem/TPosition3.hh | 2 |
7 files changed, 11 insertions, 11 deletions
diff --git a/include/JSystem/J2DGraph/J2DPane.h b/include/JSystem/J2DGraph/J2DPane.h index 2168d8cba4..ad2f238b8c 100644 --- a/include/JSystem/J2DGraph/J2DPane.h +++ b/include/JSystem/J2DGraph/J2DPane.h @@ -129,7 +129,7 @@ public: MtxP getGlbMtx() { return mGlobalMtx; } - void setMtx(Mtx m) { PSMTXCopy(m, mPositionMtx); } + void setMtx(Mtx m) { MTXCopy(m, mPositionMtx); } void translate(f32 transX, f32 transY) { mTranslateX = transX; diff --git a/include/JSystem/J3DGraphAnimator/J3DModel.h b/include/JSystem/J3DGraphAnimator/J3DModel.h index ad15bbdac2..69ad60894c 100644 --- a/include/JSystem/J3DGraphAnimator/J3DModel.h +++ b/include/JSystem/J3DGraphAnimator/J3DModel.h @@ -75,7 +75,7 @@ public: bool isCpuSkinningOn() const { return (mFlags & J3DMdlFlag_SkinPosCpu) && (mFlags & J3DMdlFlag_SkinNrmCpu); } Mtx& getBaseTRMtx() { return mBaseTransformMtx; } - void i_setBaseTRMtx(Mtx m) { PSMTXCopy(m, mBaseTransformMtx); } + void i_setBaseTRMtx(Mtx m) { MTXCopy(m, mBaseTransformMtx); } u32 getMtxCalcMode() const { return mFlags & 0x03; } J3DVertexBuffer* getVertexBuffer() const { return (J3DVertexBuffer*)&mVertexBuffer; } J3DMatPacket* getMatPacket(u16 idx) const { return &mMatPacket[idx]; } diff --git a/include/JSystem/J3DGraphAnimator/J3DMtxBuffer.h b/include/JSystem/J3DGraphAnimator/J3DMtxBuffer.h index bdb114f52a..904fa1d36b 100644 --- a/include/JSystem/J3DGraphAnimator/J3DMtxBuffer.h +++ b/include/JSystem/J3DGraphAnimator/J3DMtxBuffer.h @@ -23,7 +23,7 @@ public: /* 80326EF0 */ void calcBBoardMtx(); MtxP getAnmMtx(int idx) const { return mpAnmMtx[idx]; } - void setAnmMtx(int i, Mtx m) { PSMTXCopy(m, (MtxP)mpAnmMtx[i]); } + void setAnmMtx(int i, Mtx m) { MTXCopy(m, (MtxP)mpAnmMtx[i]); } MtxP getWeightAnmMtx(int idx) const { return mpWeightEvlpMtx[idx]; } void setScaleFlag(int idx, u8 flag) { mpScaleFlagArr[idx] = flag; } diff --git a/include/JSystem/J3DGraphBase/J3DSys.h b/include/JSystem/J3DGraphBase/J3DSys.h index 7836813a03..3bcf84f71f 100644 --- a/include/JSystem/J3DGraphBase/J3DSys.h +++ b/include/JSystem/J3DGraphBase/J3DSys.h @@ -124,7 +124,7 @@ struct J3DSys { Mtx& getModelDrawMtx(u16 no) const { return mModelDrawMtx[no]; } J3DShapePacket* getShapePacket() const { return mShapePacket; } - void setViewMtx(Mtx m) { PSMTXCopy(m, mViewMtx); } + void setViewMtx(Mtx m) { MTXCopy(m, mViewMtx); } J3DModel* getModel() { return mModel; } diff --git a/include/JSystem/JGeometry.h b/include/JSystem/JGeometry.h index 4b1503f5e4..ac4857ec30 100644 --- a/include/JSystem/JGeometry.h +++ b/include/JSystem/JGeometry.h @@ -181,7 +181,7 @@ struct TVec3<f32> { } f32 length() const { - return PSVECMag((Vec*)this); + return VECMag((Vec*)this); } void scale(register f32 sc) { @@ -247,7 +247,7 @@ struct TVec3<f32> { } void cross(const TVec3<f32>& a, const TVec3<f32>& b) { - PSVECCrossProduct(a, b, *this); + VECCrossProduct(a, b, *this); } void setLength(f32 len) { diff --git a/include/JSystem/JParticle/JPADrawInfo.h b/include/JSystem/JParticle/JPADrawInfo.h index 1163d08990..c0643214a4 100644 --- a/include/JSystem/JParticle/JPADrawInfo.h +++ b/include/JSystem/JParticle/JPADrawInfo.h @@ -6,20 +6,20 @@ class JPADrawInfo { public: JPADrawInfo(Mtx param_0, f32 fovY, f32 aspect) { - PSMTXCopy(param_0, mCamMtx); + MTXCopy(param_0, mCamMtx); C_MTXLightPerspective(mPrjMtx, fovY, aspect, 0.5f, -0.5f, 0.5f, 0.5f); } JPADrawInfo(Mtx param_0, f32 top, f32 bottom, f32 left, f32 right) { - PSMTXCopy(param_0, mCamMtx); + MTXCopy(param_0, mCamMtx); C_MTXLightOrtho(mPrjMtx, top, bottom, left, right, 0.5f, 0.5f, 0.5f, 0.5f); } Mtx mCamMtx; Mtx mPrjMtx; - void getCamMtx(Mtx* dst) const { PSMTXCopy(mCamMtx, *dst); } - void getPrjMtx(Mtx* dst) const { PSMTXCopy(mPrjMtx, *dst); } + void getCamMtx(Mtx* dst) const { MTXCopy(mCamMtx, *dst); } + void getPrjMtx(Mtx* dst) const { MTXCopy(mPrjMtx, *dst); } }; #endif
\ No newline at end of file diff --git a/include/JSystem/TPosition3.hh b/include/JSystem/TPosition3.hh index 80138dd749..3ff7bb5b23 100644 --- a/include/JSystem/TPosition3.hh +++ b/include/JSystem/TPosition3.hh @@ -15,7 +15,7 @@ template <> struct SMatrix34C<f32> { f32 data[3][4]; - void identity() { PSMTXIdentity(data); } + void identity() { MTXIdentity(data); } typedef f32 ArrType[4]; void set(const ArrType* src) { JMath::gekko_ps_copy12((f32*)data, (f32*)src); } |
