Adding splashpack

This commit is contained in:
2025-03-22 08:43:24 +01:00
parent 0d46881d7f
commit 29cbd54254
9 changed files with 87 additions and 50 deletions

View File

@@ -8,6 +8,8 @@
#include "psyqo/scene.hh"
#include "renderer.hh"
#include "output.h"
#include "splashpack.hh"
namespace {
@@ -22,7 +24,8 @@ class PSXSplash final : public psyqo::Application {
class MainScene final : public psyqo::Scene {
void frame() override;
eastl::array<psxsplash::GameObject> objects;
void start(StartReason reason) override;
eastl::vector<psxsplash::GameObject*> objects;
};
PSXSplash psxSplash;
@@ -45,6 +48,11 @@ void PSXSplash::createScene() {
pushScene(&mainScene);
}
void MainScene::start(StartReason reason) {
objects = psxsplash::LoadSplashpack(bin2c_output_bin);
}
void MainScene::frame() { psxsplash::Renderer::getInstance().render(objects); }
int main() { return psxSplash.run(); }