Support scaling matricies
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include "../../internal-include/GPU/gpu_internal.hpp"
|
||||
#include <stdio.h>
|
||||
|
||||
#include <PSX/GTE/gte.hpp>
|
||||
#include <PSX/System/syscalls.hpp>
|
||||
|
||||
extern "C" uint32_t __heap_start;
|
||||
@@ -12,6 +13,15 @@ extern "C" uint32_t __planschi_start;
|
||||
extern "C" uint32_t __planschi_end;
|
||||
|
||||
namespace JabyEngine {
|
||||
static void test_gte_scale() {
|
||||
auto matrix = GTE::ROTMATRIX::identity();
|
||||
|
||||
GTE::scale_matrix(matrix, GTE::VECTOR::create(4096*2, 4096*2, 4096*2));
|
||||
printf("|%i|%i|%i|\n", matrix.matrix[0][0], matrix.matrix[0][1], matrix.matrix[0][2]);
|
||||
printf("|%i|%i|%i|\n", matrix.matrix[1][0], matrix.matrix[1][1], matrix.matrix[1][2]);
|
||||
printf("|%i|%i|%i|\n", matrix.matrix[2][0], matrix.matrix[2][1], matrix.matrix[2][2]);
|
||||
}
|
||||
|
||||
static void test_bios_font() {
|
||||
static constexpr uint16_t SJIS = 0x83B5;
|
||||
|
||||
@@ -57,6 +67,7 @@ namespace JabyEngine {
|
||||
GPU::display_logo();
|
||||
GTE::setup();
|
||||
test_bios_font();
|
||||
test_gte_scale();
|
||||
|
||||
//Pause??
|
||||
SPU::setup();
|
||||
|
Reference in New Issue
Block a user