mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-21 12:59:14 +12:00
[PICA] Start working on textures
This commit is contained in:
parent
f7824774eb
commit
dd17b2ecb8
5 changed files with 149 additions and 32 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue