Add Simple GTE_Sprite type

This commit is contained in:
2024-04-21 16:31:17 +02:00
parent 3ef946ad4b
commit 6d2e1a7f8b
2 changed files with 23 additions and 15 deletions

View File

@@ -22,9 +22,10 @@ namespace GTETest {
GPU::Color24::Grey()
));
static auto rotation = 0.0_deg;
static auto gbl_rotation = 0.0_deg;
static void setup() {
doener_fish.area.position = GPU::PositionI16::create(100, 100);
Shared::back_menu.reset();
GTE::set_geom_offset(0, 0);
@@ -37,12 +38,10 @@ namespace GTETest {
return true;
}
const auto matrix = GTE::MATRIX{
GTE::ROTMATRIX::rotated(-rotation, rotation, -rotation),
GTE::TRANSFERVECTOR::translated((Assets::Main::DoenerFishInfo.size.width/2), (Assets::Main::DoenerFishInfo.size.height/2))
};
auto matrix = GTE::MATRIX::rotated(-gbl_rotation, gbl_rotation, -gbl_rotation);
doener_fish.apply(matrix);
rotation += 5.0_deg;
doener_fish.angle += 25.0_deg;
gbl_rotation += 2.5_deg;
return false;
}