Support loading Assets for Overlays

This commit is contained in:
2024-01-03 21:26:21 -06:00
parent c50e3b78ca
commit 4723126af2
6 changed files with 45 additions and 10 deletions

View File

@@ -4,4 +4,4 @@ namespace GPUTest {
void main() {
printf("GPU: BlubbBlubbBlubb!!\n");
}
}
}

View File

@@ -0,0 +1,20 @@
#include "include/gpu_test_assets.hpp"
#include <PSX/File/Processor/cd_file_processor.hpp>
#include <PSX/AutoLBA/auto_lba_declaration.hpp>
namespace GPUTest {
using namespace JabyEngine;
enum LBA {
__jabyengine_start_lba_request
__jabyengine_request_lba_for(TEX, "ASSETS/TEX.BIN"),
__jabyengine_request_lba_for(ICON, "ASSETS/ICON.BIN"),
__jabyengine_end_lba_request
};
__declare_lba_header(LBA);
CDFile Assets[2] = {
CDFileBuilder::simple_tim(LBA::TEX, TexPageTIM),
CDFileBuilder::simple_tim(LBA::ICON, IconTIM),
};
}

View File

@@ -0,0 +1,9 @@
#pragma once
#include <PSX/File/cd_file_types.hpp>
namespace GPUTest {
using namespace JabyEngine;
static constexpr auto TexPageTIM = SimpleTIM(384, 0, 384, 511);
static constexpr auto IconTIM = SimpleTIM(384, 256, 384, 510);
}

View File

@@ -1,9 +1,13 @@
#pragma once
#include <PSX/File/cd_file_types.hpp>
namespace ControllerTest {
void main();
}
namespace GPUTest {
extern const volatile JabyEngine::AutoLBAEntry lba[];
extern JabyEngine::CDFile Assets[2];
void main();
}