diff options
Diffstat (limited to 'src/GPU3D.h')
-rw-r--r-- | src/GPU3D.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/src/GPU3D.h b/src/GPU3D.h index be121bf..fdb85f8 100644 --- a/src/GPU3D.h +++ b/src/GPU3D.h @@ -33,7 +33,7 @@ typedef struct // final vertex attributes. // allows them to be reused in polygon strips. - s32 FinalPosition[4]; + s32 FinalPosition[2]; s32 FinalColor[3]; } Vertex; @@ -43,6 +43,11 @@ typedef struct Vertex* Vertices[10]; u32 NumVertices; + s32 FinalZ[10]; + s32 FinalW[10]; + u8 WShift; + bool WBuffer; + u32 Attr; u32 TexParam; u32 TexPalette; @@ -50,6 +55,10 @@ typedef struct bool FacingView; bool Translucent; + bool IsShadowMask; + bool IsShadow; + bool ClearStencil; + u32 VTop, VBottom; // vertex indices s32 YTop, YBottom; // Y coords s32 XTop, XBottom; // associated X coords @@ -57,9 +66,11 @@ typedef struct } Polygon; extern u32 DispCnt; -extern u32 AlphaRef; +extern u8 AlphaRef; extern s32 Viewport[4]; -extern u32 ClearAttr1, ClearAttr2; +extern u32 RenderClearAttr1, RenderClearAttr2; + +extern u16 ToonTable[32]; bool Init(); void DeInit(); @@ -75,6 +86,8 @@ void VBlank(); void VCount215(); u32* GetLine(int line); +void WriteToGXFIFO(u32 val); + u8 Read8(u32 addr); u16 Read16(u32 addr); u32 Read32(u32 addr); |