Try to rotate DönerFisch
This commit is contained in:
parent
536f7619b8
commit
a79bcac842
|
@ -1,5 +1,6 @@
|
||||||
#include "../../../include/asset_mgr.hpp"
|
#include "../../../include/asset_mgr.hpp"
|
||||||
#include "../../../include/shared.hpp"
|
#include "../../../include/shared.hpp"
|
||||||
|
#include <PSX/GTE/gte.hpp>
|
||||||
#include <PSX/GPU/make_gpu_primitives.hpp>
|
#include <PSX/GPU/make_gpu_primitives.hpp>
|
||||||
#include <PSX/Periphery/periphery.hpp>
|
#include <PSX/Periphery/periphery.hpp>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -7,6 +8,8 @@
|
||||||
namespace GTETest {
|
namespace GTETest {
|
||||||
using namespace JabyEngine;
|
using namespace JabyEngine;
|
||||||
|
|
||||||
|
static auto matrix = GTE::MATRIX::identity();
|
||||||
|
|
||||||
static auto doener_fish = Make::POLY_FT4(
|
static auto doener_fish = Make::POLY_FT4(
|
||||||
GPU::Display::center(Make::AreaI16(Make::PositionI16(0, 0), Assets::Main::DoenerFishInfo.size)),
|
GPU::Display::center(Make::AreaI16(Make::PositionI16(0, 0), Assets::Main::DoenerFishInfo.size)),
|
||||||
Assets::Main::DoenerFishInfo.tim.get_page_offset_clut4(),
|
Assets::Main::DoenerFishInfo.tim.get_page_offset_clut4(),
|
||||||
|
@ -17,6 +20,9 @@ namespace GTETest {
|
||||||
|
|
||||||
static void setup() {
|
static void setup() {
|
||||||
Shared::back_menu.reset();
|
Shared::back_menu.reset();
|
||||||
|
|
||||||
|
GTE::set_geom_offset(0, 0);
|
||||||
|
GTE::set_geom_screen(512);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool update_or_exit() {
|
static bool update_or_exit() {
|
||||||
|
@ -25,6 +31,19 @@ namespace GTETest {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTE::set_trans_matrix(matrix);
|
||||||
|
GTE::set_rot_matrix(matrix);
|
||||||
|
|
||||||
|
// for now?
|
||||||
|
GPU::Vertex* doener_vertices[] = {&doener_fish.vertex0, &doener_fish.vertex1, &doener_fish.vertex2, &doener_fish.vertex3};
|
||||||
|
for(auto* vertex : doener_vertices) {
|
||||||
|
GTE::VECTOR output;
|
||||||
|
int32_t flag;
|
||||||
|
|
||||||
|
GTE::rot_trans(GTE::SVECTOR::from(*vertex), output, flag);
|
||||||
|
*vertex = output.to<GPU::Vertex>();
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue