diff options
| author | MegaMech <inkstudios1@hotmail.com> | 2025-05-17 18:35:22 -0600 |
|---|---|---|
| committer | MegaMech <inkstudios1@hotmail.com> | 2025-05-17 18:35:22 -0600 |
| commit | c12225592a3aecc5dd3b059ebe222ed97d829cef (patch) | |
| tree | ab148cc760ffc7be3e4110a7a7a75d1b2bbca0ab | |
| parent | 3c0ac691a7e3efe28b764392ddfc91cf4aba0b1c (diff) | |
| parent | ffee8b58a975691e4c8c452fff6543565375e087 (diff) | |
Merge branch 'transformfuncsforint' of https://github.com/HarbourMasters/SpaghettiKart into transformfuncsforint
| -rw-r--r-- | src/engine/Matrix.cpp | 8 | ||||
| -rw-r--r-- | src/engine/World.h | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/engine/Matrix.cpp b/src/engine/Matrix.cpp index e46804ad5..e01df8954 100644 --- a/src/engine/Matrix.cpp +++ b/src/engine/Matrix.cpp @@ -136,6 +136,14 @@ extern "C" { AddMatrix(gWorldInstance.Mtx.Hud, mtx, flags); } + void AddPerspMatrix(Mat4 mtx, s32 flags) { + AddMatrix(gWorldInstance.Mtx.Persp, mtx, flags); + } + + void AddLookAtMatrix(Mat4 mtx, s32 flags) { + AddMatrix(gWorldInstance.Mtx.LookAt, mtx, flags); + } + void AddObjectMatrix(Mat4 mtx, s32 flags) { AddMatrix(gWorldInstance.Mtx.Objects, mtx, flags); } diff --git a/src/engine/World.h b/src/engine/World.h index bb8979090..915cacf27 100644 --- a/src/engine/World.h +++ b/src/engine/World.h @@ -46,6 +46,8 @@ class World { std::vector<Mtx> Shadows; std::vector<Mtx> Karts; std::vector<Mtx> Effects; + std::vector<Mtx> Persp; + std::vector<Mtx> LookAt; } Matrix; public: |
