Cleanup
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <EASTL/array.h>
|
||||
#include <EASTL/vector.h>
|
||||
|
||||
#include <cstdint>
|
||||
@@ -10,6 +11,7 @@
|
||||
#include <psyqo/ordering-table.hh>
|
||||
#include <psyqo/primitives/common.hh>
|
||||
#include <psyqo/primitives/misc.hh>
|
||||
#include <psyqo/primitives/triangles.hh>
|
||||
#include <psyqo/trigonometry.hh>
|
||||
|
||||
#include "camera.hh"
|
||||
@@ -22,14 +24,16 @@ class Renderer final {
|
||||
Renderer(const Renderer&) = delete;
|
||||
Renderer& operator=(const Renderer&) = delete;
|
||||
|
||||
static constexpr size_t ORDERING_TABLE_SIZE = 4096 * 16;
|
||||
static constexpr size_t BUMP_ALLOCATOR_SIZE = 8192 * 8;
|
||||
static constexpr size_t ORDERING_TABLE_SIZE = 2048 * 3;
|
||||
static constexpr size_t BUMP_ALLOCATOR_SIZE = 8096 * 16;
|
||||
|
||||
static void init(psyqo::GPU& gpuInstance);
|
||||
|
||||
void setCamera(Camera& camera);
|
||||
|
||||
void render(eastl::vector<GameObject*>& objects);
|
||||
void iterativeSubdivideAndRender(const Tri& initialTri, const eastl::array<psyqo::Vertex, 3>& initialProj,
|
||||
int zIndex, int maxIterations);
|
||||
void vramUpload(const uint16_t* imageData, int16_t posX, int16_t posY, int16_t width, int16_t height);
|
||||
|
||||
static Renderer& getInstance() {
|
||||
@@ -50,8 +54,9 @@ class Renderer final {
|
||||
|
||||
psyqo::OrderingTable<ORDERING_TABLE_SIZE> m_ots[2];
|
||||
psyqo::Fragments::SimpleFragment<psyqo::Prim::FastFill> m_clear[2];
|
||||
psyqo::Color m_clearcolor = {.r = 63, .g = 63, .b = 63};
|
||||
psyqo::BumpAllocator<BUMP_ALLOCATOR_SIZE> m_ballocs[2];
|
||||
|
||||
psyqo::Color m_clearcolor = {.r = 63, .g = 63, .b = 100};
|
||||
};
|
||||
|
||||
} // namespace psxsplash
|
||||
Reference in New Issue
Block a user