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

@@ -1,6 +1,6 @@
#pragma once
#include "EASTL/array.h"
#include "EASTL/vector.h"
#include "gameobject.hh"
#include "psyqo/bump-allocator.hh"
#include "psyqo/fragments.hh"
@@ -10,6 +10,7 @@
#include "psyqo/primitives/misc.hh"
#include "psyqo/trigonometry.hh"
#include "psyqo/kernel.hh"
#include "psyqo//fixed-point.hh"
#include <cstdint>
namespace psxsplash {
@@ -25,7 +26,7 @@ class Renderer final {
static void init(psyqo::GPU &gpuInstance);
void render(eastl::array<GameObject> &objects);
void render(eastl::vector<GameObject*> &objects);
void vramUpload(const uint16_t* imageData, int16_t posX, int16_t posY, int16_t width, int16_t height);
static Renderer& getInstance() {
@@ -36,6 +37,7 @@ class Renderer final {
private:
static Renderer* instance;
Renderer(psyqo::GPU &gpuInstance) : m_gpu(gpuInstance) {}
~Renderer() { }
@@ -47,6 +49,7 @@ class Renderer final {
psyqo::Color m_clearcolor = {.r = 63, .g = 63, .b = 63};
psyqo::BumpAllocator<BUMP_ALLOCATOR_SIZE> m_ballocs[2];
};