summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorengineer124 <47598039+engineer124@users.noreply.github.com>2024-10-23 11:51:00 +1100
committerGitHub <noreply@github.com>2024-10-22 17:51:00 -0700
commitec9b5839ade6b9ab5b9aa51260865ea7b894b496 (patch)
tree604896076ead17ff59a48b4bafed00f705b3924b /include
parent694d3b396558a4d9faa3f9d91354ab484d6affa9 (diff)
Cleanup gSPMatrix, rename `Matrix_New` -> `Matrix_Finalize`, add MATRIX_FINALIZE_AND_LOAD (#1729)
* mtx-finalize * cleanup gSPMatrix
Diffstat (limited to 'include')
-rw-r--r--include/sys_matrix.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/sys_matrix.h b/include/sys_matrix.h
index a471e4dde..5fd486279 100644
--- a/include/sys_matrix.h
+++ b/include/sys_matrix.h
@@ -13,6 +13,8 @@ typedef enum {
/* 1 */ MTXMODE_APPLY // applies transformation to the current matrix
} MatrixMode;
+#define MATRIX_FINALIZE_AND_LOAD(pkt, gfxCtx) \
+ gSPMatrix(pkt, Matrix_Finalize(gfxCtx), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW)
extern Mtx gIdentityMtx;
extern MtxF gIdentityMtxF;
@@ -51,7 +53,7 @@ void Matrix_SetTranslateRotateYXZ(f32 x, f32 y, f32 z, Vec3s* rot);
Mtx* Matrix_MtxFToMtx(MtxF* src, Mtx* dest);
Mtx* Matrix_ToMtx(Mtx* dest);
-Mtx* Matrix_NewMtx(struct GraphicsContext* gfxCtx);
+Mtx* Matrix_Finalize(struct GraphicsContext* gfxCtx);
Mtx* Matrix_MtxFToNewMtx(MtxF* src, struct GraphicsContext* gfxCtx);
/* Vector operations */