Create constructor for SimpleTIM

This commit is contained in:
Jaby
2024-09-28 13:13:00 +02:00
parent d258d79f90
commit d029ccce25
8 changed files with 12 additions and 14 deletions

View File

@@ -10,9 +10,9 @@ namespace Assets {
GPU::SizeI16 size;
};
static constexpr auto PacoTIM = SimpleTIM(896, 0, 960, 510);
static constexpr auto PacoTIM = SimpleTIM::create(896, 0, 960, 510);
static constexpr auto DoenerFishInfo = ImageInfo{
.tim = SimpleTIM(896 + 30, 0, 960 + 16, 510),
.tim = SimpleTIM::create(896 + 30, 0, 960 + 16, 510),
.size = GPU::SizeI16::create(128, 64)
};

View File

@@ -4,5 +4,5 @@
namespace ControllerTest {
using namespace JabyEngine;
static constexpr auto ControllerButtonTIM = SimpleTIM(384, 0, 384, 511);
static constexpr auto ControllerButtonTIM = SimpleTIM::create(384, 0, 384, 511);
}

View File

@@ -4,6 +4,6 @@
namespace GPUTest {
using namespace JabyEngine;
static constexpr auto TexPageTIM = SimpleTIM(384, 0, 384, 511);
static constexpr auto IconTIM = SimpleTIM(384, 256, 384, 510);
static constexpr auto TexPageTIM = SimpleTIM::create(384, 0, 384, 511);
static constexpr auto IconTIM = SimpleTIM::create(384, 256, 384, 510);
}

View File

@@ -5,7 +5,7 @@
namespace GTETest {
using namespace JabyEngine;
static constexpr auto JabySTARTim = SimpleTIM(
static constexpr auto JabySTARTim = SimpleTIM::create(
// v Doenerfisch rotates so we need some space
Assets::Main::DoenerFishInfo.tim.get_texture_x(), Assets::Main::DoenerFishInfo.tim.get_texture_y() + Assets::Main::DoenerFishInfo.size.height + 2,
Assets::Main::DoenerFishInfo.tim.get_clut_x() + 16, Assets::Main::DoenerFishInfo.tim.get_clut_y()

View File

@@ -6,7 +6,7 @@
namespace FontWriter {
using namespace JabyEngine;
static constexpr auto LibraryFontTIM = SimpleTIM(320, 0, 320, DefaultFont::Info.texture_size.height);
static constexpr auto LibraryFontTIM = SimpleTIM::create(320, 0, 320, DefaultFont::Info.texture_size.height);
static FontPrimitive font_buffer[2*256];
Wiggle wiggle = {Make::PositionI8(0, 0), Make::PositionI8(1, -2), Make::PositionI8(0, -4), Make::PositionI8(-1, -2), Make::PositionI8(0, 0), Make::PositionI8(1, 2), Make::PositionI8(0, 4), Make::PositionI8(-1, 2)};