[PICA] Start working on textures

This commit is contained in:
wheremyfoodat 2023-01-31 21:34:42 +02:00
parent f7824774eb
commit dd17b2ecb8
5 changed files with 149 additions and 32 deletions

View file

@ -5,12 +5,16 @@
#include "opengl.hpp"
#include "surface_cache.hpp"
// More circular dependencies!
class GPU;
struct Vertex {
OpenGL::vec4 position;
OpenGL::vec4 colour;
};
class Renderer {
GPU& gpu;
OpenGL::Program triangleProgram;
OpenGL::Program displayProgram;
@ -42,7 +46,7 @@ class Renderer {
MAKE_LOG_FUNCTION(log, rendererLogger)
public:
Renderer(const std::array<u32, regNum>& internalRegs) : regs(internalRegs) {}
Renderer(GPU& gpu, const std::array<u32, regNum>& internalRegs) : gpu(gpu), regs(internalRegs) {}
void reset();
void display(); // Display the 3DS screen contents to the window