store vertices and polygons. strips not handled yet.

This commit is contained in:
StapleButter
2017-02-10 15:24:46 +01:00
parent 3ad95fbc65
commit c95f7578bb
6 changed files with 405 additions and 16 deletions

16
GPU3D.h
View File

@ -22,6 +22,20 @@
namespace GPU3D
{
typedef struct
{
s32 Position[4];
u8 Color[3];
} Vertex;
typedef struct
{
Vertex* Vertices[10];
u32 NumVertices;
} Polygon;
bool Init();
void DeInit();
void Reset();
@ -30,6 +44,8 @@ void Run(s32 cycles);
void CheckFIFOIRQ();
void CheckFIFODMA();
void VBlank();
u8 Read8(u32 addr);
u16 Read16(u32 addr);
u32 Read32(u32 addr);