[FS] Implement SaveData sort of.

This commit is contained in:
wheremyfoodat 2023-03-12 03:15:44 +02:00
parent d24a61d5a7
commit e69e95af69
7 changed files with 75 additions and 31 deletions

View file

@ -61,6 +61,8 @@ class Renderer {
OpenGL::Texture getTexture(Texture& tex);
MAKE_LOG_FUNCTION(log, rendererLogger)
void setupBlending();
void bindDepthBuffer();
public:
Renderer(GPU& gpu, const std::array<u32, regNum>& internalRegs) : gpu(gpu), regs(internalRegs) {}
@ -70,6 +72,7 @@ public:
void initGraphicsContext(); // Initialize graphics context
void getGraphicsContext(); // Set up graphics context for rendering
void clearBuffer(u32 startAddress, u32 endAddress, u32 value, u32 control); // Clear a GPU buffer in VRAM
void displayTransfer(u32 inputAddr, u32 outputAddr, u32 inputSize, u32 outputSize, u32 flags); // Perform display transfer
void drawVertices(OpenGL::Primitives primType, Vertex* vertices, u32 count); // Draw the given vertices
void setFBSize(u32 width, u32 height) {
@ -92,8 +95,5 @@ public:
void setColourBufferLoc(u32 loc) { colourBufferLoc = loc; }
void setDepthBufferLoc(u32 loc) { depthBufferLoc = loc; }
void setupBlending();
void bindDepthBuffer();
static constexpr u32 vertexBufferSize = 0x1500;
};