Support apply_matrix on Vertex type
This commit is contained in:
@@ -2,10 +2,7 @@
|
||||
#include "../../internal-include/GPU/gpu_internal.hpp"
|
||||
#include <stdio.h>
|
||||
|
||||
#include <PSX/GTE/gte.hpp>
|
||||
#include <PSX/System/syscalls.hpp>
|
||||
#include "../../reference/inline_n.h"
|
||||
#include <math.h>
|
||||
|
||||
extern "C" uint32_t __heap_start;
|
||||
extern "C" uint32_t __bss_start;
|
||||
|
@@ -43,16 +43,6 @@ 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_matrix(m0);
|
||||
|
||||
JabyEngine::GTE::ldv0(v0);
|
||||
JabyEngine::GTE::rt();
|
||||
JabyEngine::GTE::stsv(v1);
|
||||
return v1;
|
||||
}
|
||||
|
||||
ROTMATRIX& multiply_matrix(const ROTMATRIX& m0, const ROTMATRIX& m1, ROTMATRIX& result) {
|
||||
set_rot_matrix(m0);
|
||||
|
||||
|
Reference in New Issue
Block a user