diff options
| author | MegaMech <7255464+MegaMech@users.noreply.github.com> | 2025-05-28 14:18:38 -0600 |
|---|---|---|
| committer | MegaMech <7255464+MegaMech@users.noreply.github.com> | 2025-05-28 14:18:38 -0600 |
| commit | 5bf771b58331870a1cc00323a353ec452b4c9ced (patch) | |
| tree | a697c9390648960ee88ce7b696c91b0ab333bf36 /src/os/guOrthoF.c | |
| parent | c55781264336269a7086e4be33df2659d70ce061 (diff) | |
wip interp changeswipinterpchanges
Diffstat (limited to 'src/os/guOrthoF.c')
| -rw-r--r-- | src/os/guOrthoF.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/os/guOrthoF.c b/src/os/guOrthoF.c index f38376b72..41271223d 100644 --- a/src/os/guOrthoF.c +++ b/src/os/guOrthoF.c @@ -1,8 +1,10 @@ #include "libultra_internal.h" +#include "src/port/interpolation/FrameInterpolation.h" void guOrthoF(float m[4][4], float left, float right, float bottom, float top, float near, float far, float scale) { int row; int col; + FrameInterpolation_Record_guOrtho(m, left, right, bottom, top, near, far, scale); guMtxIdentF(m); m[0][0] = 2 / (right - left); m[1][1] = 2 / (top - bottom); @@ -19,7 +21,8 @@ void guOrthoF(float m[4][4], float left, float right, float bottom, float top, f } void guOrtho(Mtx* m, float left, float right, float bottom, float top, float near, float far, float scale) { - float sp28[4][4]; - guOrthoF(sp28, left, right, bottom, top, near, far, scale); - guMtxF2L(sp28, m); + float mtxF[4][4]; + guOrthoF(mtxF, left, right, bottom, top, near, far, scale); + FrameInterpolation_RecordMatrixMtxFToMtx(mtxF, m); + guMtxF2L(mtxF, m); } |
