Support ApplyMatrix

This commit is contained in:
2024-04-02 16:08:24 -05:00
parent 87f71a6c61
commit 57e1a17dd2
5 changed files with 52 additions and 11 deletions

View File

@@ -43,6 +43,16 @@ namespace JabyEngine {
static MATRIX Stack[StackSize];
static MATRIX* FreeStackEntry = Stack;
SVECTOR& apply_matrix(const MATRIX& m0, const SVECTOR& v0, SVECTOR& v1) {
// TODO: Do we want to push here?
set_rot_matrix(m0);
JabyEngine::GTE::ldv0(v0);
JabyEngine::GTE::rtv0();
JabyEngine::GTE::stsv(v1);
return v1;
}
MATRIX& multiply_matrix(const MATRIX& m0, const MATRIX& m1, MATRIX& result) {
set_rot_matrix(m0);